Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include an implementation of the missing function vsnprintf(), in this case with the executable, to eliminate the dependency on an external library functions when they are not available. This compliant solution assumes that __USE_ISOC99 is not defined on systems that fail to provide a vsnprintf() implementation.

Code Block
bgColor#ccccff
#include <stdio.h>
#ifndef __USE_ISOC99
  #include "my_stdio.h" /* reimplements vsnprintf() */
#endif

...