| 21 | // Like sprintf but returns the string and so doesn't require a buffer arg. |
| 22 | |
| 23 | const char* ssprintf(const char* format, ...) |
| 24 | { |
| 25 | static char s[SBIG]; |
| 26 | va_list args; |
| 27 | va_start(args, format); |
| 28 | VSPRINTF(s, format, args); |
| 29 | va_end(args); |
| 30 | return s; |
| 31 | } |
| 32 | |
| 33 | // Like strncpy but always zero terminate, issue error if can't. |
| 34 |