X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0a032eea07f6d77ac6ea4d5a39c9491c34358058..6fdc3cdb023a8bf4e86e292ba3a748c6e7de788f:/sbr/trimcpy.c?ds=inline diff --git a/sbr/trimcpy.c b/sbr/trimcpy.c index c64f80f0..6ed00b99 100644 --- a/sbr/trimcpy.c +++ b/sbr/trimcpy.c @@ -1,5 +1,4 @@ -/* - * trimcpy.c -- strip leading and trailing whitespace, +/* trimcpy.c -- strip leading and trailing whitespace, * -- replace internal whitespace with spaces, * -- then return a copy. * @@ -8,8 +7,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" char * @@ -50,7 +49,8 @@ trimcpy (char *cp) * complete copyright information. */ char * -cpytrim (const char *sp) { +cpytrim (const char *sp) +{ char *dp; char *cp; @@ -82,7 +82,8 @@ cpytrim (const char *sp) { * complete copyright information. */ char * -rtrim (char *sp) { +rtrim (char *sp) +{ char *cp; /* start at the end and zap trailing whitespace */