str.cxx

changeset 34
0a9a5902beaa
parent 32
d11a034aabfd
child 66
4fc1ec88aa41
equal deleted inserted replaced
33:fd35f6cb5f28 34:0a9a5902beaa
43 #include <string.h> 43 #include <string.h>
44 #include <stdarg.h> 44 #include <stdarg.h>
45 #include "str.h" 45 #include "str.h"
46 #include "common.h" 46 #include "common.h"
47 47
48 #define ITERATE_STRING(u) for (unsigned int u = 0; u < strlen (text); u++) 48 #define ITERATE_STRING(u) \
49 for (unsigned int u = 0; u < strlen (text); u++)
49 50
50 // ============================================================================ 51 // ============================================================================
51 // vdynformat: Try to write to a formatted string with size bytes first, if 52 // vdynformat: Try to write to a formatted string with size bytes first, if
52 // that fails, double the size and keep recursing until it works. 53 // that fails, double the size and keep recursing until it works.
53 char* vdynformat (const char* c, va_list v, unsigned int size) { 54 char* vdynformat (const char* c, va_list v, unsigned int size) {

mercurial