Top "C" questions

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

Multiple arguments to function called by pthread_create()?

I need to pass multiple arguments to a function that I would like to call on a separate thread. I've …

c pthreads
1 = false and 0 = true?

I came across an is_equals() function in a c API at work that returned 1 for non-equal sql tables (false) …

c logic
Reading and writing to serial port in C on Linux

I'm trying to send/receive data over an USB Port using FTDI, so I need to handle serial communication using …

c linux serial-port tty
Passing variable number of arguments around

Say I have a C function which takes a variable number of arguments: How can I call another function which …

c variadic-functions
How to convert const char* to char* in C?

In my project there is a method which only returns a const char*, whereas I need a char* string, as …

c pointers const-char
What is the difference between AF_INET and PF_INET in socket programming?

What is the difference between AF_INET and PF_INET in socket programming? I'm confused between using AF_INET and …

c linux sockets
How can I create a dynamically sized array of structs?

I know how to create an array of structs but with a predefined size. However is there a way to …

c dynamic memory-management
Incompatible implicit declaration of built-in function ‘malloc’

I'm getting this error: warning: incompatible implicit declaration of built-in function ‘malloc’ I am trying to do this: fileinfo_list* …

c struct malloc
Fastest method of screen capturing on Windows

I want to write a screencasting program for the Windows platform, but am unsure of how to capture the screen. …

c++ c windows
What is EOF in the C programming language?

How do you get to see the last print? In other words what to put in for EOF? I checked …

c input eof