Logo Search packages:      
Sourcecode: bglibs version File versions

int str_catc ( str s,
char  in 
)

Append a single character

Definition at line 34 of file cat.c.

References len, s, and str_realloc.

Referenced by envstr_put(), envstr_set(), and str_sort().

{
  if (!str_realloc(s, s->len+1)) return 0;
  s->s[s->len++] = in;
  s->s[s->len] = 0;
  return 1;
}


Generated by  Doxygen 1.6.0   Back to index