Top "C" questions

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

error: Libtool library used but 'LIBTOOL' is undefined

I am trying to automake the OrientDb C++ library, but getting some errors. Makefile.am:10: error: Libtool library used but …

c linux autotools orientdb
Invalid Operands to binary / (have 'int *' and 'int')?

Every time I try this: long crypt(int *integer) { printf("Enter five digit integer:\n"); scanf("%i",integer); int digit1=…

c header-files operands
How to use __DATE__ and __TIME__ predefined macros in as two integers, then stringify?

Want to use __ DATE __ and __ TIME __ as integer for giving automated version to my code in compile time. #define STRINGIZER(…

c macros predefined-macro
Easy way to use variables of enum types as string in C?

Here's what I am trying to do: typedef enum { ONE, TWO, THREE } Numbers; I am trying to write a function …

c enums c-preprocessor
What is the best free memory leak detector for a C/C++ program and its plug-in DLLs?

I have a .exe and many plug-in .dll modules that the .exe loads. (I have source for both.) A cross-platform (…

c++ c visual-studio memory-leaks
C/C++ line number

In the sake of debugging purposes, can I get the line number in C/C++ compilers? (standard way or specific …

c++ c c-preprocessor line-numbers dynamic-compilation
What is the use of the %n format specifier in C?

What is the use of the %n format specifier in C? Could anyone explain with an example?

c printf
Example of waitpid() in use?

I know that waitpid() is used to wait for a process to finish, but how would one use it exactly? …

c fork parent-child waitpid
When to use pthread_exit() and when to use pthread_join() in Linux?

I am new to pthreads, and I am trying to understand it. I saw some examples like the following. I …

c linux pthreads
How to get the sign, mantissa and exponent of a floating point number

I have a program, which is running on two processors, one of which does not have floating point support. So, …

c floating-point emulation