MGrFileSize - returns the size of a file in bytes.
mojave green software co's general utilities library libMG.so.0 ( -lMG )
#include <MGrFileSize.h> int {fileSize} = MGrFileSize( char* {fileName} )
Given a file name and path, MGrFileSize will return its size in bytes.
MGrFileSize either returns a files size in bytes on success or NULL on failure with a failure message sent to stderr.
MGrFileSize sources | ||
---|---|---|
Makefile | html | |
MGrFileSize.c | html | .c |
MGrFileSize.h | html | .h |
int main() { char fileName[] = "someFile.txt"; int someFileSize; someFileSize = MGrFileSize( fileName ); exit( 0 );
Mojave Green Software Co. Landers Ca Michael C. Shultz copyright(c) March 2004 all rights reserved