Next: cnfCref - Create a temporary FORTRAN CHARACTER string and return a pointer to it.
Up: CNF C Routine Descriptions
Previous: cnfCptr - Convert a FORTRAN pointer to a C pointer
cnfCreat
- Create a temporary C string and return a pointer to it
- 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.
Next: cnfCref - Create a temporary FORTRAN CHARACTER string and return a pointer to it.
Up: CNF C Routine Descriptions
Previous: cnfCptr - Convert a FORTRAN pointer to a C pointer
CNF and F77 Mixed Language Programming -- FORTRAN and C
Starlink User Note 209
P.M. Allan
A.J. Chipperfield
R.F. Warren-Smith
19 January 2000
E-mail:ussc@star.rl.ac.uk