X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fconcat.c;h=5c519e9f4896f324fcd6df117e338c12b1f6db28;hp=4c3fcff3e30689a71c60b7a79f396c8222487fec;hb=b33ba7a7953d06a123ee59811903f0eb7f69e120;hpb=714b5c530ece27ea2835a313013f5b770163403c diff --git a/sbr/concat.c b/sbr/concat.c index 4c3fcff..5c519e9 100644 --- a/sbr/concat.c +++ b/sbr/concat.c @@ -11,6 +11,17 @@ #include +static char * +copy(char *from, char *to) +{ + while ((*to = *from)) { + to++; + from++; + } + return (to); +} + + char * concat(char *s1, ...) {