Lines Matching defs:str
127 /* Appends n characters in str to buf. */
128 struct Buf *buf_strnappend (buf, str, n)
130 const char *str;
133 buf_append (buf, str, n + 1);
141 /* Appends characters in str to buf. */
142 struct Buf *buf_strappend (buf, str)
144 const char *str;
146 return buf_strnappend (buf, str, strlen (str));
149 /* appends "#define str def\n" */
150 struct Buf *buf_strdefine (buf, str, def)
152 const char *str;
157 buf_strappend (buf, str);
173 char * str;
177 str = (char*)flex_alloc(strsz = strlen(fmt) + strlen(def) + strlen(val) + 2);
178 if (!str)
181 snprintf(str, strsz, fmt, def, val);
182 buf_append(buf, &str, 1);
194 char * str;
197 str = (char*)flex_alloc(strsz = strlen(fmt) + strlen(def) + 2);
198 if (!str)
201 snprintf(str, strsz, fmt, def);
202 buf_append(buf, &str, 1);