Re: finding how much the file system is full, from a C program?



"Herbert Rosenau" <os2guy@xxxxxxxxxxxxx> wrote:

# > In ANSI C you can do something like
# > system("df -k /mnt/mvdg1/vset >/tmp/df-k");
#
# That is not ANSI C. The parameter of system is system dependant and
# unportable.

Nice try, kid, but the system() function has been in ANSI C
from the beginning.

# On my system is no directory mnt.

And I guess you don't know enough C to use program arguments
or how to construct strings.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
She broke your heart and inadvertently drove men to deviant lifestyles.
.



Relevant Pages

  • Re: finding how much the file system is full, from a C program?
    ... # That is not ANSI C. ... The parameter of system is system dependant and ... impletation compilant as it relays on the filesystem the path points ... Else you would know where the limits of standard C are and how to ...
    (comp.lang.c)
  • Re: finding how much the file system is full, from a C program?
    ... That is not ANSI C. ... On my system is no directory mnt. ... Not ANSI C but system dependant. ... Visit http://www.ecomstation.de the home of german eComStation ...
    (comp.lang.c)
  • Body/Face Flushing Racing Pulse
    ... I have always thought I had a racing heart rate ... and I tend to get ansi rather quickly. ... I have complained in the past that I felt my heart was ... blood pressure being very different when standing and sitting. ...
    (sci.med.cardiology)