title: Print the file name, line number and function name of a calling function - C Prog
body: <p>I want to create log.c file with containing info(), debug() and error() functions.
  These functions are working without printing file name, line number,..etc.
  So when I call one of this function I want to dump the file name, line number, and function name of the caller. So how do we exactly trace back?
  Is there a way to trace back on C or, if we use macros, how can this be done?</p>