liberscribble/src/scbpath.c File Reference
#include <string.h>
#include <sys/stat.h>
#include "scbpath.h"
Go to the source code of this file.
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 }
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 }