comparison lib/xwrap.c @ 1183:0752b2d58909 draft

Rename xmsprintf() to just xmprintf(). Partly because there's no supplied target string ala sprintf, and partly because I can never remember what order the m and s go in.
author Rob Landley <rob@landley.net>
date Thu, 16 Jan 2014 09:26:50 -0600
parents 8afe1fde9314
children 468444e5c7c5
comparison
equal deleted inserted replaced
1182:7079ea384a2e 1183:0752b2d58909
64 { 64 {
65 return xstrndup(s, strlen(s)); 65 return xstrndup(s, strlen(s));
66 } 66 }
67 67
68 // Die unless we can allocate enough space to sprintf() into. 68 // Die unless we can allocate enough space to sprintf() into.
69 char *xmsprintf(char *format, ...) 69 char *xmprintf(char *format, ...)
70 { 70 {
71 va_list va, va2; 71 va_list va, va2;
72 int len; 72 int len;
73 char *ret; 73 char *ret;
74 74