X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/6f9272bdabcda81425ec1aaecf26a160535d4749..15521f07dc09a276839c46168201d31ee1ae4a97:/lib/minilib.c?ds=inline 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));