kevin <[EMAIL PROTECTED]> wrote:
> In /usr/include/sys/dirent.h I see this:
>
> /*
> * File-system independent directory entry.
> */
> typedef struct dirent {
> ino_t d_ino; /* "inode number" of entry */
> off_t d_off; /* offset of disk
> directory entry */
> unsigned short d_reclen; /* length of this record */
> char d_name[1]; /* name of file */
> } dirent_t;
>
> Why the *name of file* d_name[1] have only one char?
This is the "usual way" of dealing with variable sized arrays.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]