> The second parameter of strchr() is an integer, not a pointer. > So use '\0' instead of NULL. That code is horrid! and must contain at least one possible buffer overrun bug.... David -- David Laight: david@l8s.co.uk