Description:
Create a temporary
C string and return a pointer to it. The space allocated to the C string is ‘length’ characters and is
initialized to the null string.
Invocation
pointer = cnfCreat( length )
Arguments
int length
(Given)
The length of the space to be allocated in characters.
Returned Value
char
cnfCreat
A pointer to the storage that has been allocated by this routine.
Notes:
-
If the argument is given as N then there is room to store N-1 characters plus a trailing null character in
a C string.
-
If the routine could not create the space, then it returns a null pointer.