"Fossies" - the Fresh Open Source Software Archive

Member "delegate9.9.13/maker/__statvfs.c" (16 Aug 2009, 262 Bytes) of package /linux/misc/old/delegate9.9.13.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "__statvfs.c" see the Fossies "Dox" file reference documentation.

    1 #include <sys/types.h>
    2 #include <sys/statvfs.h>
    3 #include <string.h>
    4 
    5 int Fstype(const char *path,char type[])
    6 {   struct statvfs buf;
    7 
    8     if( statvfs(path,&buf) == 0 ){
    9         memcpy(type,buf.f_basetype,strlen(buf.f_basetype)+1);
   10         return 0;
   11     }
   12     *type = 0;
   13     return -1;
   14 }