On Sat, 29 Oct 2005 19:56:34 +0200 ilLogict <[EMAIL PROTECTED]> babbled:

> Aujourd'hui, Martin Geisler <[EMAIL PROTECTED]> a raconté :
> 
> > ilLogict <[EMAIL PROTECTED]> writes:
> >
> >>>    file->preview_funcs[0] = e_fm_file_is_image;
> >>>    file->preview_funcs[1] = e_fm_file_is_etheme;
> >>>    file->preview_funcs[2] = e_fm_file_is_ebg;
> >>>    file->preview_funcs[3] = e_fm_file_is_eap;
> >>> +   file->preview_funcs[4] = NULL;
> >>
> >> Hello!
> >>
> >> As far as I know, there is no need to add a NULL item to the table,
> >> as there is always a NULL item added after the last element of a
> >> table.  Please correct me if I'm wrong.
> >
> > In C there's no NULL being put anywhere after an array.  I guess
> > you're thinking of strings, which are terminated by a NULL character.
> > So when you write "foo" in the source code, the compiler will turn it
> > into an array with four elements: 'f', 'o', 'o', and NULL.
> >
> > --
> > 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
> >
> 
> Hello!
> 
> As far as I tried, creating a n-field array and accessing the array[n] element
> always returned me NULL. And I think it is correct, just checking for instance
> the environ man .
> 
> [snip]
>   int main (
>         int argc,
>         char *argv[ ] );
> 
>   Here, the argc parameter contains the number of arguments being passed to
>   the new main function.  *The argv[ ] parameter is a null-terminated array of
>   character pointers that point to the arguments themselves.  (The null
>   pointer is not included in the count specified in the argc parameter.)*
> [snip]
> 
> But maybe have I had only chance to always have a NULL element after 
> the others
> :)

i'ts sheer luck that it's NULL. NEVER rely on it.

> Cheers!
> 
> -- 
> 
>                                           ilLogict
> 
> 
> Website: http://illogict.online.fr
> E-Mail:  [EMAIL PROTECTED]
> AIM/NIM: illogict
> Yahoo:   illogict
> MSN:     [EMAIL PROTECTED]
> ICQ:     #74274856
> 
> Infos:   E17 rocks!
>          Le nettoyage de ligne, quelle chose efficace ! (1900->4700 @60dB)
> 
> 
> -------------------------------------------------------
> 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
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


-------------------------------------------------------
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