X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/6f9272bdabcda81425ec1aaecf26a160535d4749..037ce545946a8bc2d482d24e3bbdb6174a93ca46:/lib/minilib.c diff --git a/lib/minilib.c b/lib/minilib.c index e90f7af..664a0b4 100644 --- a/lib/minilib.c +++ b/lib/minilib.c @@ -75,6 +75,15 @@ void strcpy(char *a2, const char *a1) } while (*(a1++)); } +void strcat(char *dest, char *src) +{ + while (*dest) + dest++; + while (*src) + *(dest++) = *(src++); + *(dest++) = *(src++); +} + void puts(const char *c) { putbytes(c, strlen(c));