what might be a practical use of strspn?
strspn
Collapse
This topic is closed.
X
X
-
j0mbolarTags: None -
Kevin D. Quitt
Re: strspn
On 23 Nov 2004 15:15:38 -0800, j0mbolar@engine er.com (j0mbolar) wrote:[color=blue]
>what might be a practical use of strspn?[/color]
Something like this:
/* Skip leading whitespace and remove trailing whitespace.
*/
pline = templine + strspn( templine, " \t\n\r\f" );
stripTerminalWh itespace( pline );
linelen = strlen( pline );
--
#include <standard.discl aimer>
_
Kevin D Quitt USA 91387-4454 96.37% of all statistics are made up
Per the FCA, this address may not be added to any commercial mail list
Comment