c question: *printf'ing arrays

Giorgos Keramidas keramida at ceid.upatras.gr
Sat Jul 4 07:17:20 UTC 2009


On Tue, 30 Jun 2009 20:21:03 +0200 (CEST), Alexander Best <alexbestms at math.uni-muenster.de> wrote:
> thanks. now the output gets redirected using >. i'm quite new to programming
> under unix. sorry for the inconvenience.
>
> so i guess there is no really easy way to output an inhomogeneous struct to
> stdout without using a loop to output each array contained in the struct.

No not really.  You have to do the sizeof() dance.



More information about the freebsd-hackers mailing list