Initial revision

This commit is contained in:
leitner
2001-02-02 17:54:47 +00:00
commit 3083708670
156 changed files with 3007 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#include "stralloc.h"
/* stralloc_append adds one byte buf[0] to the end of the string stored
* in sa. It is the same as stralloc_catb(&sa,buf,1). */
int stralloc_append(stralloc *sa,const char *in) {
if (stralloc_readyplus(sa,1)) {
sa->s[sa->len]=*in;
++sa->len;
return 1;
}
return 0;
}