Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/trace2/tr2_tbuf.h # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / trace2 / tr2_tbuf.h` 24 lines ยท 509 bytes Raw Blame History 1 #ifndef TR2_TBUF_H 2 #define TR2_TBUF_H 3 4 /* 5 * A simple wrapper around a fixed buffer to avoid C syntax 6 * quirks and the need to pass around an additional size_t 7 * argument. 8 */ 9 struct tr2_tbuf { 10 char buf[32]; 11 }; 12 13 /* 14 * Fill buffer with formatted local time string. 15 */ 16 void tr2_tbuf_local_time(struct tr2_tbuf *tb); 17 18 /* 19 * Fill buffer with formatted UTC datatime string. 20 */ 21 void tr2_tbuf_utc_datetime_extended(struct tr2_tbuf *tb); 22 void tr2_tbuf_utc_datetime(struct tr2_tbuf *tb); 23 24 #endif /* TR2_TBUF_H */