Hi, I'm having a problem trying to get the filesizes of archives given
by the list of dirents structures.
what i mean is this: to find out the size of any archive i use ftell
and it works just fine, well, when i use the list of dirents the size i
get is not correct. why?
The C programming language knows nothing of dirents whatever they may
me. As to using ftell to determine the file size, that is not portable
either since the only requirement is that it be suitable for fseek, not
that it be a byte count.
If you want to know file sizes and why a specific implementation gives
specific results when you use certain methods you will have to ask in a
group dedicated to your platform, but only after checking the groups FAQ
and a few days worth of posting and try using Google to search the group
for an answer (obtaining file sizes has been discussed here several
times in the past). This advice is to help *you* not just keep this
group topical, since on the correct group any misinformation is far more
likely to be corrected.
To me dirent makes it sound like you might be using a unix like system,
so comp.unix.programmer might be a suitable place to ask.