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.