Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
307 B

  1. #include "stralloc.h"
  2. /* stralloc_append adds one byte in[0] to the end of the string stored
  3. * in sa. It is the same as stralloc_catb(&sa,in,1). */
  4. int stralloc_append(stralloc *sa,const char *in) {
  5. if (stralloc_readyplus(sa,1)) {
  6. sa->s[sa->len]=*in;
  7. ++sa->len;
  8. return 1;
  9. }
  10. return 0;
  11. }