hi,
how can I get the length of a string that has embedded '\0' ?
ThanksCode:char * foo = "abcde\0fgh\0ijkl";
printf ("%s\n", foo); /* this only prints out: abcde */
printf("%d\n", strlen(foo)); /* this displays: 5 instead of 12 (or is it 14 ?) */
--Andrew