[linux] Ekvivalent filelength..

Marian Krivos nezmar na internet.alcatel.sk
Středa Červenec 3 13:41:41 CEST 2002


#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/stat.h>
#include <unistd.h>
#include <ctype.h>



long	filelength( char *name)
{
    struct stat status;
    if (stat(name, &status)==-1) return 0;
    return status.st_size;
}








Další informace o konferenci linux