Add comment about strftimei()

This commit is contained in:
Stas Degteff 2011-02-21 13:09:11 +00:00
parent f7f092da62
commit dc33e90de0
2 changed files with 3 additions and 0 deletions

View File

@ -229,6 +229,8 @@ inline Clock gclock() { return Clock(clock()*10/CLK_TCK); }
int str2mon(const char* ptr) __attribute__ ((const));
int tzoffset();
// In differ to ANSI C strftime() the function strftimei() supports reloading of field names (loaded from language file).
// Return NULL if output truncated, otherwize return s.
char* strftimei(char* s, size_t maxsize, const char* fmt, const struct tm* t); // __attribute__ ((format (strftime, 3, 0)));
FTime TimeToFTime(time32_t __time) __attribute__ ((const));

View File

@ -183,6 +183,7 @@ static void strfmt(char *str, const char *fmt, ...) {
// ------------------------------------------------------------------
// In differ to ANSI C strftime this function supports reloading of
// field names
// Return NULL if output truncated, otherwize return s.
#define setvar(internal,external,field) \
char **internal = external; \