On Sat, Oct 29, 2005 at 09:19:52PM +0200, Martin Geisler wrote:
> 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.

correct ... strings have a NUL added to the end, but arrays do not have NULLs 
added to the end ... wouldnt make sense after all, NULL is for pointers and 
arrays arent always an array of pointers ...
-mike


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to