X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/bc10b0cee78f7df5b7b2c6958a5a547f56bac4f5..d9c88cd101a63778a85dfd55a01a3af0db2465c9:/sbr/getcpy.c diff --git a/sbr/getcpy.c b/sbr/getcpy.c index 32c8db43..42779e02 100644 --- a/sbr/getcpy.c +++ b/sbr/getcpy.c @@ -1,6 +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 @@ -11,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);