Top "C" questions

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

What is Linux’s native GUI API?

Both Windows (Win32 API) and OS X (Cocoa) have their own APIs to handle windows, events and other OS stuff. …

c++ c linux api user-interface
Double precision - decimal places

From what I have read, a value of data type double has an approximate precision of 15 decimal places. However, when …

c++ c precision ieee-754
Compile a DLL in C/C++, then call it from another program

I want to make a simple, simple DLL which exports one or two functions, then try to call it from …

c++ c dll gcc vb6
How do I find the index of a character within a string in C?

Suppose I have a string "qwerty" and I wish to find the index position of the e character in it. (…

c indexing strchr
Reading a string with spaces with sscanf

For a project I'm trying to read an int and a string from a string. The only problem is sscanf() …

c string scanf
Tools to get a pictorial function call graph of code

I have a large work space which has many source files of C code. Although I can see the functions …

c function call-graph
C/C++ include header file order

What order should include files be specified, i.e. what are the reasons for including one header before another? For …

c++ c
How to pass variable number of arguments to printf/sprintf

I have a class that holds an "error" function that will format some text. I want to accept a variable …

c++ c printf variadic-functions
What is the worst real-world macros/pre-processor abuse you've ever come across?

What is the worst real-world macros/pre-processor abuse you've ever come across (please no contrived IOCCC answers *haha*)? Please add …

c++ c macros preprocessor