summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-09-13 21:36:43 (GMT)
committer Simon <simon@hardwired.org.uk>2010-09-13 21:36:43 (GMT)
commita92da37559aa6e68d9165ff4f69f83517594bcc4 (patch)
tree5e2bba8d835f46d893ce47f85ad70b8ad887a598 /misc.c
parent812cf13ed22ff195be6c5bdaa90286b562c7e9cc (diff)
downloadpowder-a92da37559aa6e68d9165ff4f69f83517594bcc4.zip
powder-a92da37559aa6e68d9165ff4f69f83517594bcc4.tar.gz
History almost complete, couple of bug fixes
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index e32ec7e..2eac7b2 100644
--- a/misc.c
+++ b/misc.c
@@ -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");