Lines Matching refs:str
443 buf->str = buf->local_buf;
444 buf->str[0] = '\0';
455 if (buf->str != NULL && buf->str != buf->local_buf) {
456 free(buf->str);
466 return (buf->str);
478 strbuf_copy(idnconv_strbuf_t *buf, const char *str) {
482 size_t len = strlen(str);
486 strcpy(buf->str, str);
487 return (buf->str);
491 strbuf_append(idnconv_strbuf_t *buf, const char *str) {
495 size_t len1 = strlen(buf->str);
496 size_t len2 = strlen(str);
502 strcpy(buf->str + len1, str);
515 return (buf->str);
516 if (buf->str == buf->local_buf) {
521 if ((p = realloc(buf->str, size)) == NULL)
524 buf->str = p;
526 return (buf->str);
544 buf->str[0] = '\0';
549 return (buf->str);
551 if (buf->str[0] != '\0')
552 return (buf->str);