ilLogict <[EMAIL PROTECTED]> writes: > As far as I tried, creating a n-field array and accessing the > array[n] element always returned me NULL.
You have been lucky, or rather, you've seen the effects of how memory is allocated on the heap: you ought to get a segmentation fault when you access memory outside the array, but sometimes you don't see this because some extra memory is allocated. Try using a library like Electric Fence to test this: http://www.die.net/doc/linux/man/man3/efence.3.html > And I think it is correct, just checking for instance the environ > man . That talked about a convention used for that particular array -- in general arrays are not NULL terminated. -- Martin Geisler GnuPG Key: 0x7E45DD38 PHP Exif Library | PHP Weather | PHP Shell http://pel.sf.net/ | http://phpweather.net/ | http://mgeisler.net/ Read/write Exif data | Show current weather | A shell in a browser
pgpByIiKff1Bq.pgp
Description: PGP signature