diff options
| author | Simon <simon@hardwired.org.uk> | 2010-09-13 21:36:43 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-09-13 21:36:43 (GMT) |
| commit | a92da37559aa6e68d9165ff4f69f83517594bcc4 (patch) | |
| tree | 5e2bba8d835f46d893ce47f85ad70b8ad887a598 /misc.c | |
| parent | 812cf13ed22ff195be6c5bdaa90286b562c7e9cc (diff) | |
| download | powder-a92da37559aa6e68d9165ff4f69f83517594bcc4.zip powder-a92da37559aa6e68d9165ff4f69f83517594bcc4.tar.gz | |
History almost complete, couple of bug fixes
Diffstat (limited to 'misc.c')
| -rw-r--r-- | misc.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -219,6 +219,20 @@ void strcaturl(char *dst, char *src) *d = 0; } +void strappend(char *dst, char *src) +{ + char *d; + unsigned char *s; + + for(d=dst; *d; d++) ; + + for(s=(unsigned char *)src; *s; s++) + { + *(d++) = *s; + } + *d = 0; +} + void *file_load(char *fn, int *size) { FILE *f = fopen(fn, "rb"); |
