April 10, 2004

FreeBSD 4.9

MGrFileSize(3) i386/PRM


NAME

MGrFileSize - returns the size of a file in bytes.


LIBRARY

mojave green software co's general utilities library libMG.so.0 ( -lMG )


SYNOPSIS

#include    <MGrFileSize.h>

int {fileSize}  = MGrFileSize( char* {fileName} )
       

DESCRIPTION

Given a file name and path, MGrFileSize will return its size in bytes.


RETURN VALUES

MGrFileSize either returns a files size in bytes on success or NULL on failure with a failure message sent to stderr.


FILES

MGrFileSize sources
Makefile html
MGrFileSize.c html .c
MGrFileSize.h html .h

EXAMPLES

int main()
{
    char       fileName[]  = "someFile.txt";
    int        someFileSize;

    someFileSize            = MGrFileSize( fileName );
    exit( 0 );
       

DIAGNOSTICS


COMPATIBILITY


ERRORS


SEE ALSO


STANDARDS


HISTORY


AUTHORS

Mojave Green Software Co.
Landers Ca
Michael C. Shultz
copyright(c) March 2004
all rights reserved
       

BUGS