Posts Tagged ‘c’

A Brief Guide to Socket Programming in C

This brief guide is prepared for the people who knows C and have some knowledge about computer networks and protocols. This guide is mainly a summary of several resources indicated in the resources part. For the folks who want to get more information related to some fundemental knowledge related to essentials of computer networks. Please [...]

Memory functions in C and the difference between Memset and Malloc

Memset and malloc are 2 of the most confused functions in C. But actually they have very different usages and functions. “malloc” allocate a memory section whereas memset manipulate the content of the memory section. For instance : char * c; c = (char *) malloc(sizeof(char)); The above code creates and allocates a memory space [...]