sizeof "string"

woods at hao.UUCP woods at hao.UUCP
Sat Jan 28 07:04:34 AEST 1984


  Of course it isn't a good idea to use sizeof on strings! It should properly
return the size of a char pointer. That is why "strlen" is in the stdio
library!

		    GREG
-- 
{ucbvax!hplabs | allegra!nbires | decvax!kpno | harpo!seismo | ihnp4!kpno}
       		        !hao!woods



More information about the Comp.lang.c mailing list