liberscribble/include/scbpath.h File Reference

#include "scbconfig.h"
#include <glib.h>

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ScbPath

Typedefs

typedef struct _ScbPath ScbPath
typedef ScbPathScbPathPtr

Functions

void scb_path_init (ScbPathPtr ptr)
gboolean scb_path_file_exist (const char *pathName)


Typedef Documentation

typedef struct _ScbPath ScbPath

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

typedef ScbPath* ScbPathPtr

Definition at line 42 of file scbpath.h.


Function Documentation

gboolean scb_path_file_exist ( const char *  pathName  ) 

Definition at line 39 of file scbpath.c.

00040 {
00041     struct stat statbuf;
00042     if (0 != stat(pathName, &statbuf))
00043     {
00044         return FALSE;
00045     }
00046     if (S_ISREG(statbuf.st_mode))
00047     {
00048         return TRUE;
00049     }
00050     return FALSE;
00051 }

void scb_path_init ( ScbPathPtr  ptr  ) 

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 30 of file scbpath.c.

00031 {
00032     if (ptr)
00033     {
00034         memset(ptr, 0, sizeof(ScbPath));
00035     }
00036 }


Generated on Sun Dec 14 17:15:02 2008 by  doxygen 1.5.6