scbpath.c File Reference
#include <string.h>
#include <sys/stat.h>
#include "scbpath.h"
Go to the source code of this file.
Define Documentation
Copyright (C) 2008 iRex Technologies B.V. All rights reserved.
Definition at line 28 of file scbpath.c.
Function Documentation
gboolean erscribble_path_file_exist |
( |
const char * |
pathName |
) |
|
Definition at line 77 of file scbpath.c.
00078 {
00079 struct stat statbuf;
00080 if (0 != stat(pathName, &statbuf))
00081 {
00082 return FALSE;
00083 }
00084
00085 #ifdef ENABLE_DRIVER
00086 if (S_ISREG(statbuf.st_mode))
00087 {
00088 return TRUE;
00089 }
00090 return FALSE;
00091 #else
00092 return TRUE;
00093 #endif
00094 }
Definition at line 68 of file scbpath.c.
00069 {
00070 if (ptr)
00071 {
00072 memset(ptr, 0, sizeof(ScbPath));
00073 }
00074 }