Valgrind Hello World

Jul 05, 2008 13:25

I've said this before, but Valgrind is cool. Here's a basic example of how to use it to find memory leaks in a C program:

Here's a file, "vhelloworld.c"

#include "stdio.h ( Read more... )

Leave a comment

Comments 1

lantius July 6 2008, 01:48:40 UTC
valgrind blew my mind, and reinforced the tragedy that most cse students graduate without even knowing about (much less how to use) some of the amazing tools that are out there - source control, valgrind, gdb, etc.

also, always use with caution on code you don't understand.

Reply


Leave a comment

Up