Top "C" questions

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

Using scanf() in C++ programs is faster than using cin?

I don't know if this is true, but when I was reading FAQ on one of the problem providing sites, …

c++ c performance io
How do I use mqueue in a c program on a Linux based system?

How do I use mqueue (message queue) in a c program on a Linux based system? I'm looking for some …

c linux ipc mqueue
#include in .h or .c / .cpp?

When coding in either C or C++, where should I have the #include's? callback.h: #ifndef _CALLBACK_H_ #define _CALLBACK_…

c++ c
How can I use "sizeof" in a preprocessor macro?

Is there any way to use a sizeof in a preprocessor macro? For example, there have been a ton of …

c gcc
C/C++: Static function in header file, what does it mean?

I know what it means when static function is declared in source file. I am reading some code, found that …

c function static
Signal handling in pthreads

I have created a pthread, and installed a signal handler inside that, same way as we do in main( ) function. …

c pthreads signals
how to correctly use fork, exec, wait

The shell i'm writing needs to execute a program given to it by the user. Here's the very shortened simplified …

c shell exec
The difference between stdout and STDOUT_FILENO

I was wondering the difference between stdout and STDOUT_FILENO in Linux C. After some searching work, I draw the …

c linux stdout
scanf() leaves the new line char in the buffer

I have the following program: int main(int argc, char *argv[]) { int a, b; char c1, c2; printf("Enter something: "); …

c scanf
How should I get started on writing device drivers?

I would like to learn how to write device drivers because I think it would be fun. I use a …

c assembly hardware drivers