spBase
読み取り中…
検索中…
一致する文字列を見つけられません
spDirectory.h
[詳解]
1
4#ifndef __SPDIRECTORY_H
5#define __SPDIRECTORY_H
6
7#include <sp/spDefs.h>
8#if !defined(MACOS9) && !(defined(_WIN32) && !defined(__CYGWIN32__))
9#include <dirent.h>
10#endif
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#if defined(MACOS9) || (defined(_WIN32) && !defined(__CYGWIN32__))
17typedef struct _DIR DIR;
18
19#define MAXNAMLEN 1024
20
21struct dirent {
22 char d_name[MAXNAMLEN];
23 unsigned short d_namlen;
24 long d_ino;
25};
26#endif
27
28#if defined(MACOS)
29#pragma import on
30#endif
31
35 /*----@addtogroup spDirectoryGroup----*/
36
40extern DIR *spOpenDir(const char *path);
47extern struct dirent *spReadDir(DIR *dirp);
52extern int spCloseDir(DIR *dirp);
53
54 /*----@addtogroup spDirectoryGroup----*/
55
56#if defined(MACOS)
57#pragma import off
58#endif
59
60#ifdef __cplusplus
61} /* Close scope of 'extern "C"' declaration */
62#endif
63
64#endif /* __SPDIRECTORY_H */
DIR * spOpenDir(const char *path)
struct dirent * spReadDir(DIR *dirp)
int spCloseDir(DIR *dirp)