Top "C" questions

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

"fatal error: bits/libc-header-start.h: No such file or directory" while compiling HTK

I'm getting the following issue when trying to run make on the HTK library: (cd HTKLib && make HTKLib.…

c makefile htk
What does "%.*s" mean in printf?

I got a code snippet in which there is a printf("%.*s\n") what does the %.*s mean?

c printf format-specifiers
encrypt- decrypt with AES using C/C++

How can I encrypt and decrypt a file with a 256 key AES in C or C++?

c++ c encryption aes
What does a type followed by _t (underscore-t) represent?

This seems like a simple question, but I can't find it with the Stack Overflow search or Google. What does …

c naming-conventions types
DEBUG macros in C++

I just encountered a DEBUG macro in C that I really like #ifdef DEBUG_BUILD # define DEBUG(x) fprintf(stderr, …

c++ c debugging c-preprocessor
Maximum memory which malloc can allocate

I was trying to figure out how much memory I can malloc to maximum extent on my machine (1 Gb RAM 160 …

c memory-management operating-system malloc cpu-architecture
how to use inverse in C

[how to use ~ operator ] I have a structure say Alpha. I know the value of element inside Alpha (say a) …

c bitwise-operators
Members of Dirent structure

I have started working with dirent.h library and I came across a very useful member of "struct dirent" structer …

c linux dir readdir dirent.h
malloc: *** error: incorrect checksum for freed object - object was probably modified after being freed

I have a big problem with my iOS App: it crashes sometimes without detailed debug error. The stack trace is …

ios objective-c c crash malloc
IF-ELSE statement shortcut in C

C has the following syntax for a shorthand IF-ELSE statement (integer == 5) ? (TRUE) : (FALSE); I often find myself requiring only one …

c if-statement shortcut