Date: Tue, 30 Jun 2009 19:00:21 +0100 From: Igor Mozolevsky <igor@hybrid-lab.co.uk> To: Alexander Best <alexbestms@math.uni-muenster.de> Cc: freebsd-hackers@freebsd.org Subject: Re: c question: *printf'ing arrays Message-ID: <a2b6592c0906301100g55827437o66e09d6ca1269cdd@mail.gmail.com> In-Reply-To: <permail-20090630173241f7e55a9d000009a9-a_best01@message-id.uni-muenster.de> References: <a2b6592c0906301016q6823983fq5c7d97587a62e291@mail.gmail.com> <permail-20090630173241f7e55a9d000009a9-a_best01@message-id.uni-muenster.de>
next in thread | previous in thread | raw e-mail | index | archive | help
2009/6/30 Alexander Best <alexbestms@math.uni-muenster.de>: > that works, but i really want to have a pretty output to stdout. i guess i > have to stick with printf and use `for (i=0; i < sizeof(XXX); i++)` for each > array in the struct. just thought i could avoid it. > > btw. `./my-program | hexdump` works, but if i do `./my-program > output` > output is being created, but is empty. is this normal? Depends if you output to stdout or stderr --- `>' redirects stdout. Cheers, -- Igor
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a2b6592c0906301100g55827437o66e09d6ca1269cdd>