Top "C" questions

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

How to include static library in makefile

I have the following makefile CXXFILES = pthreads.cpp CXXFLAGS = -O3 -o prog -rdynamic -D_GNU_SOURCE -L./libmine LIBS = -lpthread …

c linux gcc x86-64
How can I create C header files

I want to be able to create a collection of functions in a header file that I could #include in …

c function header-files modular
How to invoke function from external .c file in C?

My files are // main.c #include "add.c" int main(void) { int result = add(5,6); printf("%d\n", result); } and // add.…

c function external
How to do encryption using AES in Openssl

I am trying to write a sample program to do AES encryption using Openssl. I tried going through Openssl documentation( …

c openssl aes
gcc: undefined reference to

I would like to compile this. program.c #include <libavcodec/avcodec.h> int main(){ int i = avpicture_get_…

c++ c gcc linker undefined-reference
In C - check if a char exists in a char array

I'm trying to check if a character belongs to a list/array of invalid characters. Coming from a Python background, …

c arrays string char
Download file using libcurl in C/C++

I am building an application (on windows using Dev-C++) and I want it to download a file. I am doing …

c file curl download libcurl
How can I get an int from stdio in C?

I have significant trouble with this... printf("> "); int x = getchar(); printf("got the number: %d", scanf("%d", &x)); …

c stdio
do { ... } while (0) — what is it good for?

Possible Duplicate: Why are there sometimes meaningless do/while and if/else statements in C/C++ macros? I've been seeing …

c loops
How to specify 64 bit integers in c

I'm trying to use 64 bit integers in C, but am getting mixed signals as to whether it should be possible. …

c 64-bit sizeof