| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

get_file_time

#include "sflfile.h"
time_t
get_file_time (
    const char *filename)

Synopsis

Returns the modification time of the specified file or directory. The returned time is suitable for feeding to localtime().

Source Code - (sflfile.c)

{
    struct stat
        stat_buf;

    ASSERT (filename);

    if (stat ((char *) filename, &stat_buf) == 0)
        return (stat_buf.st_mtime > 0? stat_buf.st_mtime: 0);
    else
        return (0);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix