Top "C" questions

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

What is the C runtime library?

What actually is a C runtime library and what is it used for? I was searching, Googling like a devil, …

c runtime
pthreads mutex vs semaphore

What is the difference between semaphores and mutex provided by pthread library ?

c linux synchronization pthreads mutex
What is the difference between fork and thread?

Can anyone explain the difference between a fork and a thread?

c process multithreading fork
Is there a way to find all the functions exposed by a dll

I've been searching for a way to get all the strings that map to function names in a dll. I …

c++ c winapi dll
Specifying size of enum type in C

Already read through this related question, but was looking for something a little more specific. Is there a way to …

c optimization enums word-size
Does free(ptr) where ptr is NULL corrupt memory?

Theoretically I can say that free(ptr); free(ptr); is a memory corruption since we are freeing the memory which …

c pointers memory-management null free
getopt.h: Compiling Linux C-Code in Windows

I am trying to get a set of nine *.c files (and nine related *.h files) to compile under Windows. …

c visual-studio build command-line-arguments getopt
How are 3D arrays stored in C?

I understand that arrays in C are allocated in row-major order. Therefore, for a 2 x 3 array: 0 1 2 3 4 5 Is stored in memory …

c arrays low-level
How to use Fork() to create only 2 child processes?

I'm starting to learn some C and while studying the fork, wait functions I got to a unexpected output. At …

c process fork parent-child wait
Calling a python method from C/C++, and extracting its return value

I'd like to call a custom function that is defined in a python module from C. I have some preliminary …

c++ python c python-c-api python-embedding