Correct memory usage in C with Valgrind

posted in: C | 0

Here is a quick how to use Valgrind tool to check if you have invalid usage of memory in C. Configuration Install valgrind:

compile your program with debug informations using gcc -g flag

Launch your program with valgrind: … Continued

Notes about recursion

posted in: C, Guides, tricks | 0

In order to understand recursion, you must understand recursion. A common approach of solving life’s problem is to divide them in smaller ones. Solving lot of little problems is easier than solving one big problem. This approach is often used … Continued

Extracting C function prototypes

posted in: C, tricks | 0

Often, when I write some C code, I write header file at last. One task that is really long and boring is to copy function prototype into header. To help me with this task, I wrote a command line to … Continued