Convert an int to ASCII character?

I have int i = 6; and I want char c = '6' by conversion. Any simple way to suggest? EDIT: also i need to ge...

Fatal error: iostream: No such file or directory in compiling C program using GCC?

Why when I wan to compile the following multi thread merge sorting C program, I receive this error: [email protected]:~/...

Portable way to check if directory exists [Windows/Linux, C]?

I would like to check if a given directory exists. I know how to do this on Windows: BOOL DirectoryExists(LPCTSTR ...

Execution time of C program?

I have a C program that aims to be run in parallel on several processors. I need to be able to record the execution ...

gdb: No symbol “i” in current context?

While debugging a C program in gdb I have a breakpoint in a for loop. I cannot print the value of "i" ( I get : No s...

C char* to int conversion?

How would I go about converting a two-digit number (type char*) to an int? ...

How to convert an ASCII character into an int in C?

How can I convert an ASCII character into an int in C? ...

How to dynamically allocate memory space for a string and get that string from user??

I want to read input from user using C program. I don't want to use array like, char names[50]; because if the us...

OpenSSL error handling?

Is this the correct way to do error handling in OpenSSL? And what is the difference between SSL_get_error and ERR_ge...

How to use SHA1 hashing in C programming?

I am trying to write a C program that proves SHA1 is nearly collision free, but I cannot figure out how to actually ...

how to get thread id of a pthread in linux c program??

In linux c program, how to print thread id of a thread created by pthread library? for ex: we can get pid of a proce...

How to get child PID in C??

I'm creating child processes in a for-loop. Inside the child process, I can retrieve the child PID with getpid(). ...

Is Fortran easier to optimize than C for heavy calculations??

From time to time I read that Fortran is or can be faster then C for heavy calculations. Is that really true? I must...