Top "C" questions

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

Openssl : error "self signed certificate in certificate chain"

When I used openssl APIs to validate server certificate (self signed), I got following error : error 19 at 1 depth lookup:self …

c linux openssl ssl-certificate verify
String Padding in C

I wrote this function that's supposed to do StringPadRight("Hello", 10, "0") -> "Hello00000". char *StringPadRight(char *string, int padded_len, …

c string padding
Code for printf function in C

Possible Duplicate: source code of c/c++ functions I was wondering where I can find the C code that's used …

c printf stdio
Open directory using C

I am accepting the path through command line input. When I do dir=opendir(args[1]); it doesn' t enter the …

c opendir
C program to check little vs. big endian

Possible Duplicate: C Macro definition to determine big endian or little endian machine? int main() { int x = 1; char *y = (char*)&…

c byte endianness
How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor?

If there's some cross-platform C/C++ code that should be compiled on Mac OS X, iOS, Linux, Windows, how can …

c++ c cross-platform c-preprocessor os-detection
Difference between uint32 and uint32_t

Possible Duplicate: Difference between different integer types What is the difference between uint32 and uint32_t in C/C++? Are …

c++ c uint32 uint32-t
Erase the current printed console line

How can I erase the current printed console line in C? I am working on a Linux system. For example …

c linux console erase
How to append strings using sprintf?

I am facing a serious issue with sprintf. Suppose my code snippet is: sprintf(Buffer,"Hello World"); sprintf(Buffer,"Good …

c printf
What are the most common naming conventions in C?

What are the naming conventions commonly use in C? I know there are at least two: GNU / linux / K&…

c naming-conventions