Re: NNTPC: Odd strtok usage...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



proff@suburbia.net writes...
> > The test for tok on line 2 is superflous, the only way tok could be NULL 
> > is if xrefbuf was NULL and whoever used strtok last ran out of tokens.
> 
> It can also return null if xrefbuf contains nothing but " \t".

You are two for two!

That's ok, I've still got the sscanf in reserve. ;)

-- 
Aaron Nabil
nabil@teleport.com


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux