THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
509B

  1. #ifndef TR2_TBUF_H
  2. #define TR2_TBUF_H
  3. /*
  4. * A simple wrapper around a fixed buffer to avoid C syntax
  5. * quirks and the need to pass around an additional size_t
  6. * argument.
  7. */
  8. struct tr2_tbuf {
  9. char buf[32];
  10. };
  11. /*
  12. * Fill buffer with formatted local time string.
  13. */
  14. void tr2_tbuf_local_time(struct tr2_tbuf *tb);
  15. /*
  16. * Fill buffer with formatted UTC datatime string.
  17. */
  18. void tr2_tbuf_utc_datetime_extended(struct tr2_tbuf *tb);
  19. void tr2_tbuf_utc_datetime(struct tr2_tbuf *tb);
  20. #endif /* TR2_TBUF_H */