Re: [RFC][PATCH] parser for mount options

Christoph Hellwig (hch@ns.caldera.de)
Tue, 7 Aug 2001 20:12:54 +0200


On Tue, Aug 07, 2001 at 08:06:54PM +0200, Daniel Phillips wrote:
> Can't think of anything to flame about, so how about a comment: strtok
> is evil. Even strtok_r sucks somewhat for destroying the input string
> but strtok is far worse for keeping internal static state. This would
> be a good opportunity to add strtok_r to the library and use it.

strsep()

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/