X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/6f9272bdabcda81425ec1aaecf26a160535d4749..34a7d0d2f76c71165cc643d5b48061786a83fc87:/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));