]> diplodocus.org Git - nmh/blob - sbr/getcpy.h
sendsbr.c: Move interface to own file.
[nmh] / sbr / getcpy.h
1 /* getcpy.h -- copy a string in managed memory
2 *
3 * THIS IS OBSOLETE. NEED TO REPLACE ALL OCCURRENCES
4 * OF GETCPY WITH STRDUP. BUT THIS WILL REQUIRE
5 * CHANGING PARTS OF THE CODE TO DEAL WITH NULL VALUES.
6 *
7 * This code is Copyright (c) 2017, by the authors of nmh. See the
8 * COPYRIGHT file in the root directory of the nmh distribution for
9 * complete copyright information. */
10
11 /* Return malloc'd copy of str, or of "" if NULL, exit on failure. */
12 char *getcpy(const char *str);