Hi, Edward!
On Tue, Dec 12, 2000 at 03:29:00PM +0200, you wrote the following:
> Is there a system call that will give a file size (given it's name &
> path) ?
> I know that a possible answer can be the use of the system() call, and
> using ls -l| sort -bn +4 from the shell it open- but I'm looking for
> something more simple.
Yes, use the stat() call. Check "man 2 stat".
--
Alex Shnitman | http://www.debian.org
[EMAIL PROTECTED], [EMAIL PROTECTED] +-----------------------
http://alexsh.hectic.net UIN 188956 PGP key on web page
E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA
A bit of irony for you: Bill Gates claims to be trying to make a stable
operating system, while Linus Torvalds claims to be trying to take over
the world.
-- Ernie Miller
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]