X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0a032eea07f6d77ac6ea4d5a39c9491c34358058..d9c88cd101a63778a85dfd55a01a3af0db2465c9:/sbr/getcpy.c diff --git a/sbr/getcpy.c b/sbr/getcpy.c index b073ae9d..42779e02 100644 --- a/sbr/getcpy.c +++ b/sbr/getcpy.c @@ -1,5 +1,4 @@ -/* - * getcpy.c -- copy a string in managed memory +/* getcpy.c -- copy a string in managed memory * * THIS IS OBSOLETE. NEED TO REPLACE ALL OCCURRENCES * OF GETCPY WITH STRDUP. BUT THIS WILL REQUIRE @@ -10,11 +9,13 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "getcpy.h" +#include "h/utils.h" /* Return malloc'd copy of str, or of "" if NULL, exit on failure. */ -char *getcpy(const char *str) +char * +getcpy(const char *str) { if (str) return mh_xstrdup(str);