Top "C" questions

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

How to define relative paths in Visual Studio Project?

I have a library and a console application that uses a library. The library has a folder with source and …

c visual-studio visual-studio-2008 visual-c++
Copying one structure to another

I know that I can copy the structure member by member, instead of that can I do a memcpy on …

c struct copy
How to compile without warnings being treated as errors?

The problem is that the same code that compiles well on Windows, is unable to compile on Ubuntu. Every time …

c gcc compiler-warnings
Reset C int array to zero : the fastest way?

Assuming that we have a T myarray[100] with T = int, unsigned int, long long int or unsigned long long int, …

c++ c arrays memset
Signed to unsigned conversion in C - is it always safe?

Suppose I have the following C code. unsigned int u = 1234; int i = -5678; unsigned int result = u + i; What implicit …

c type-conversion
How to break out of nested loops?

If I use a break statement, it will only break inner loop and I need to use some flag to …

c nested-loops break
Open source PDF library for C/C++ application?

I want to be able to generate PDF output from my (native) C++ Windows application. Are there any free/open …

c++ c pdf open-source
Sleep function in Windows, using C

I need to sleep my program in Windows. What header file has the sleep function?

c windows sleep
Using true and false in C

As far as I can see there are 3 ways to use booleans in c with the bool type, from then …

c coding-style
Where is PATH_MAX defined in Linux?

Which header file should I invoke with #include to be able to use PATH_MAX as an int for sizing …

c linux gcc include clang