1: /* getcpy.c - copy a string in managed memory */
2:
3: #include "../h/mh.h"
4: #include <stdio.h>
5:
6:
7: char *getcpy (str)
8: register char *str;
9: {
10: register char *cp;
11:
12: if ((cp = malloc ((unsigned) (strlen (str) + 1))) == NULL)
13: adios (NULLCP, "unable to allocate string storage");
14:
15: (void) strcpy (cp, str);
16: return cp;
17: }
Defined functions
getcpy
defined in line
7; used 52 times
- in /usr/src/new/mh/sbr/addrsbr.c line
172,
382-390(3),
396-398(2),
417-418(2),
427-432(4),
438-450(5),
459,
480,
497-502(3)
- in /usr/src/new/mh/sbr/fmtcompile.c line
200
- in /usr/src/new/mh/sbr/formatsbr.c line
56
- in /usr/src/new/mh/sbr/m_foil.c line
19-20(2)
- in /usr/src/new/mh/sbr/m_getdefs.c line
43,
50,
114,
143
- in /usr/src/new/mh/sbr/m_gmsg.c line
221,
235,
267-269(2)
- in /usr/src/new/mh/sbr/m_maildir.c line
49
- in /usr/src/new/mh/sbr/m_readefs.c line
67-69(2)
- in /usr/src/new/mh/sbr/m_replace.c line
19-20(2),
35,
48-49(2)
- in /usr/src/new/mh/sbr/m_seqnew.c line
43,
94
- in /usr/src/new/mh/sbr/m_setseq.c line
17
- in /usr/src/new/mh/sbr/m_setvis.c line
18
- in /usr/src/new/mh/sbr/path.c line
51,
63,
69,
83,
92
- in /usr/src/new/mh/sbr/trimcpy.c line
24