strftime.h 456 B

1234567891011121314151617181920212223
  1. /*
  2. * strftime.h
  3. * header file for strftime.c
  4. *
  5. */
  6. #ifndef _EGG_COMPAT_STRFTIME_H_
  7. #define _EGG_COMPAT_STRFTIME_H_
  8. #include "src/main.h"
  9. #include <time.h>
  10. /* Use the system libraries version of strftime() if available. Otherwise
  11. * use our own.
  12. */
  13. #ifndef HAVE_STRFTIME
  14. size_t egg_strftime(char *s, size_t maxsize, const char *format,
  15. const struct tm *tp);
  16. #else
  17. # define egg_strftime strftime
  18. #endif
  19. #endif /* !_EGG_COMPAT_STRFTIME_H_ */