X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/bc4927948a1b01bf2ae8b952dfd2639c1f929f00..d9c88cd101a63778a85dfd55a01a3af0db2465c9:/sbr/trimcpy.c?ds=inline diff --git a/sbr/trimcpy.c b/sbr/trimcpy.c index 8cdb065b..09b6ec34 100644 --- a/sbr/trimcpy.c +++ b/sbr/trimcpy.c @@ -1,6 +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. * @@ -9,8 +7,9 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "trimcpy.h" +#include "h/utils.h" char * @@ -51,7 +50,8 @@ trimcpy (char *cp) * complete copyright information. */ char * -cpytrim (const char *sp) { +cpytrim (const char *sp) +{ char *dp; char *cp; @@ -83,7 +83,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 */