Next: cnfLenf - Find the length of a FORTRAN string
Up: CNF C Routine Descriptions
Previous: cnfImprtap - Import a FORTRAN CHARACTER array into a C array of pointers to char.
cnfLenc
- Find the length of a C string
- Description:
- Find the length (i.e. position of the last non blank character)
in a C string.
- Invocation:
- result = cnfLenc( source_c )
- Arguments:
-
-
const char *source_c (Given)
-
A pointer to the input C string
- Returned Value:
-
-
int cnfLenc
-
The length of the input C string
- Notes:
- This routine follows the FORTRAN convention of counting
positions from one, so with an input string of "ABCD" the
value returned would be 4.
Next: cnfLenf - Find the length of a FORTRAN string
Up: CNF C Routine Descriptions
Previous: cnfImprtap - Import a FORTRAN CHARACTER array into a C array of pointers to char.
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