#include <stdio.h> #include "util.h" extern char user_msg[USER_MSG_LENGTH];
void foobar( char* name ) { snprintf( user_msg, USER_MSG_LENGTH, "In function foobar, name: %s", name ); print_output( user_msg, DEBUG ); // ... }
#include <assert.h>
bool foobar() { PROFILE(FOOBAR); bool retval = TRUE; // Do some stuff. PROFILE_END; return (retval); }