strspn

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • j0mbolar

    #1

    strspn

    what might be a practical use of strspn?
  • Kevin D. Quitt

    #2
    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

    Working...