NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
files.c File Reference
#include "cram/misc.h"
#include <sys/types.h>
#include <sys/stat.h>

Go to the source code of this file.

Macros

#define S_ISDIR(m)   (((m)&S_IFMT) == S_IFDIR)
 
#define S_ISREG(m)   (((m)&S_IFMT) == S_IFREG)
 

Functions

int is_directory (char *fn)
 
int is_file (char *fn)
 
int file_exists (char *fn)
 
int file_size (char *fn)
 

Macro Definition Documentation

#define S_ISDIR (   m)    (((m)&S_IFMT) == S_IFDIR)

Definition at line 44 of file files.c.

#define S_ISREG (   m)    (((m)&S_IFMT) == S_IFREG)

S_ISDIR

Definition at line 47 of file files.c.

Function Documentation

int file_exists ( char *  fn)

Definition at line 64 of file files.c.

int file_size ( char *  fn)

Definition at line 70 of file files.c.

int is_directory ( char *  fn)

S_ISREG

Definition at line 50 of file files.c.

int is_file ( char *  fn)

Definition at line 57 of file files.c.