Category Archives: Programming

Confused about declarations in C involving pointers ?

We know that in “C”, variable declaration involving functions and pointers at times gets quite confusing. If you disagree please have a go at declare x as const pointer to array 10 of pointer to function (int) returning const pointer … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

using cut to extract the output of top

I wanted to profile the memory usage of one of my program for different problem sizes. I was interested in only the resident memory used while the program was running . “top” was an obvious choice and luckily top provides … Continue reading

Posted in Administration, Programming | Leave a comment

Blocking vs Non Blocking Socket

RECEIVE SOCKET TIMEOUT The recv call is used to receive messages from a socket, and may be used to receive data on a socket whether or not it is connection-oriented.The recv() function shall return the length of the message written … Continue reading

Posted in Programming | Tagged , , , | 4 Comments