Rev 23 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 23 | Rev 34 | ||
---|---|---|---|
Line 122... | Line 122... | ||
122 | dir->handle = (long) _findfirst64 (dir->search_pattern, &dir->info); |
122 | dir->handle = (long) _findfirst64 (dir->search_pattern, &dir->info); |
123 | dir->result.d_namlen = 0; dir->result.d_name = NULL; // first-time initialization |
123 | dir->result.d_namlen = 0; dir->result.d_name = NULL; // first-time initialization |
124 | } |
124 | } |
125 | #else // !_MSC_VER |
125 | #else // !_MSC_VER |
126 | #define strcpy_s(s1,s1size,s2) strcpy ((s1), (s2)) |
126 | #define strcpy_s(s1,s1size,s2) strcpy ((s1), (s2)) |
- | 127 | #define strncpy_s(s1,s1size,s2,len) strncpy ((s1), (s2), (len)) |
|
127 | #define strcat_s(s1,s1size,s2) strcat ((s1), (s2)) |
128 | #define strcat_s(s1,s1size,s2) strcat ((s1), (s2)) |
- | 129 | #define strncat_s(s1,s1size,s2,len) strncat ((s1), (s2), (len)) |
|
128 | #define sprintf_s(s1,s1size,...) sprintf ((s1), __VA_ARGS__) |
130 | #define sprintf_s(s1,s1size,...) sprintf ((s1), __VA_ARGS__) |
129 | #define fopen_s(fp,pathname,mode) *(fp) = fopen ((pathname), (mode)) |
131 | #define fopen_s(fp,pathname,mode) *(fp) = fopen ((pathname), (mode)) |
130 | extern const char *__progname; // exported by libc |
132 | extern const char *__progname; // exported by libc |
131 | #endif // _MSC_VER |
133 | #endif // _MSC_VER |
132 | 134 |