Aaron S. Hawley writes: > > shouldn't it be strlen not sizeof? No. An array is not converted to a pointer when it is the argument of sizeof, so sizeof a string literal is the number of bytes in the string (including the terminating NUL), not the size of a char *.
-Larry Jones I hate being good. -- Calvin