Re: [d-i] today's treecompare
On Tue Oct 23, 2001 at 12:56:15PM +1300, Mark van Walraven wrote:
> On Sat, Oct 20, 2001 at 04:23:05AM -0600, Erik Andersen wrote:
> > Umm. What possible good would it do to parse dd output? Check the
> > return code. or stat the output file if you are paranoid.
>
> It was a way to determine file size in the absence of wc. But if you've
> enabled wc in b-f busybox, there is no longer any need.
I did indeed re-enable wc. But seriously though, if you know
the file's name, couldn't you just stat(2)? Something like:
struct stat statbuf;
...
stat(filename, &statbuf);
filesize = statbuf.st_size;
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Reply to: