Top "C" questions

C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.

Converting Between Local Times and GMT/UTC in C/C++

What's the best way to convert datetimes between local time and UTC in C/C++? By "datetime", I mean some …

c++ c timezone dst
What does EAGAIN mean?

As in the title what does EAGAIN mean?

c sockets unix posix
Why doesn't ANSI C have namespaces?

Having namespaces seems like no-brainer for most languages. But as far as I can tell, ANSI C doesn't support it. …

c namespaces ansi-c
Program received signal SIGPIPE, Broken pipe

I write a client program based on posix sockets. The program creates multiple threads and is going to lock the …

c sockets gdb pthreads sigpipe
LinkedList - How to free the memory allocated using malloc

I have a very simple C code for constructing a Singly Linked list as below, in which I allocate memory …

c linked-list malloc free
strcmp() return values in C

I am learning about strcmp() in C. I understand that when two strings are equal, strcmp returns 0. However, when the …

c strcmp
Is char guaranteed to be exactly 8-bit long?

That's all. Didn't find any similar topic so bear with me it there is.

c types char
Tool to track #include dependencies

Any good suggestions? Input will be the name of a header file and output should be a list (preferably a …

c++ c header
gcc warning: braces around scalar initializer

I have look-up-table as defined below and I'm making use of GCC. When I compile I get warnings as warning: …

c lookup-tables gcc-warning
How to completely destroy a socket connection in C

I have made a chat client in linux using socket, and i wish to destroy the connection completely. Following is …

c linux sockets network-programming