LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Scaning disk (https://www.linuxquestions.org/questions/linux-software-2/scaning-disk-304674/)

mp4-10 03-22-2005 09:38 AM

Scaning disk
 
Hi,
I would like to scan hard disk in my application written in gcc(c language), is it possible.
Are there already any functions or structures with linux gcc to make it work....

Thanx

ToniT 03-22-2005 10:31 AM

Everything is possible with c.

In the filesystem level, or at the byte level?

What do you mean by scanning?

Looking for some strings in files? Try
Code:

grep -r foo /
Something else, what?

mp4-10 03-22-2005 11:04 AM

HI
 
I would like to scan how muc free space is there left on hard disk and write it to some int variable in my c code!

Bye

ToniT 03-22-2005 11:40 AM

see
Code:

man 2 statfs


All times are GMT -5. The time now is 12:16 PM.