Top "C" questions

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

What's the difference between __PRETTY_FUNCTION__, __FUNCTION__, __func__?

What's the difference between __PRETTY_FUNCTION__, __FUNCTION__, __func__, and where are they documented? How do I decide which one to …

c++ c compiler-construction standards
In C can a long printf statement be broken up into multiple lines?

I have the following statement: printf("name: %s\targs: %s\tvalue %d\tarraysize %d\n", sp->name, sp->…

c printf
How to throw an exception in C?

I typed this into google but only found howtos in C++, how to do it in C?

c exception syntax
typeof operator in C

Is typeof in C, really an operator? I'm thinking because there is no polymorphism in C, that there is nothing …

c gcc typeof
minimum double value in C/C++

Is there a standard and/or portable way to represent the smallest negative value (e.g. to use negative infinity) …

c++ c math
What is the difference between sscanf or atoi to convert a string to an integer?

gcc 4.4.4 c89 What is better to convert a string to an integer value. I have tried 2 different methods atoi and …

c scanf atoi
What's an object file in C?

I am reading about libraries in C but I have not yet found an explanation on what an object file …

c compilation linker object-files
socket connect() vs bind()

Both connect() and bind() system calls 'associate' the socket file descriptor to an address (typically an ip/port combination). Their …

c sockets network-programming
Converting char* to float or double

I have a value I read in from a file and is stored as a char*. The value is a …

c strtod atof
How do you get a directory listing in C?

How do you scan a directory for folders and files in C? It needs to be cross-platform.

c file directory cross-platform common-tasks