Subject: Re: magic symlinks: uid keyword translation
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 10/31/2006 03:30:52
>> 	printf("%s", uid_to_string_buf(uid).str); /* not legal */
> What's wrong with that?  If a function returns a struct or union, you
> are allowed to use just one member.

Even when that member is an array, which is "used" by decaying it to a
pointer to its [0] element?  Is the return-value object guaranteed to
exist long enough for printf to access it, or does it go "out of
scope" (except "scope" isn't really the right word, "storage duration"
would be closer) before that?

> Try it, or read section of the C99 standard.

Where can I find it?  I thought it was a pay-for-play "standard".

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B