etienne wrote:
> I want the strtok to differ when there is one
> space and 2 spaces, when there are 2 space, it is
> a different word, when it is 1 space it belongs to
> the same name...
To do this, I would probably not use strtok. I would
use strchr() to search for single space char in a for
loop and when found, I would print and decide if I
need to print a space or a newline by looking at the
next char. Only pass the unprocessed part of the
input string as the first parameter to strchr().
I'm not loged into a HP-UX machine rightnow, so
can't give you an example code; but it should be
quite simple.
- Biswajit
:-)