mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 08:26:14 +00:00
16 lines
335 B
C
16 lines
335 B
C
#include "valgrind.h"
|
|
#include <stdio.h>
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
int x = 0;
|
|
x += VALGRIND_PRINTF("Yo ");
|
|
x += VALGRIND_PRINTF("Yo ");
|
|
x += VALGRIND_PRINTF("Ma\n");
|
|
fprintf(stderr, "%d\n", x);
|
|
x = VALGRIND_PRINTF_BACKTRACE("Backtrace line one\nLine two:\n");
|
|
fprintf(stderr, "%d\n", x);
|
|
return 0;
|
|
}
|