2 ** getcpy.c -- copy a string in managed memory
4 ** THIS IS OBSOLETE. NEED TO REPLACE ALL OCCURENCES
5 ** OF GETCPY WITH STRDUP. BUT THIS WILL REQUIRE
6 ** CHANGING PARTS OF THE CODE TO DEAL WITH NULL VALUES.
8 ** This code is Copyright (c) 2002, by the authors of nmh. See the
9 ** COPYRIGHT file in the root directory of the nmh distribution for
10 ** complete copyright information.
24 len = strlen(str) + 1;
28 cp = mh_xmalloc((size_t) 1);