stat, or fstat
look at :
man 2 stat

Oded

..
"It's God.  No, not Richard Stallman, or Linus Torvalds, but God."
(By Matt Welsh)

----- Original Message ----- 
From: "Edward Gold" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 12, 2000 15:29
Subject: File size question


> 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.
> 
> Thanks
> 
> 
> =================================================================
> 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]
> 
> 


=================================================================
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]

Reply via email to