B
baumann@pan
hi all,
i want to use the fprintf to make log.
if defined LOG_TO_FILE, it is easy to use fprintf to write the log
file.
if not defined LOG_TO_FILE, i want to simply write to error std
console.
how can I do so with fprintf since fprintf only accept FILE*? while
error std console has int value 2.
i want to use the fprintf to make log.
if defined LOG_TO_FILE, it is easy to use fprintf to write the log
file.
if not defined LOG_TO_FILE, i want to simply write to error std
console.
how can I do so with fprintf since fprintf only accept FILE*? while
error std console has int value 2.