(path)
| 229 | static HDIR DirHandle; |
| 230 | |
| 231 | int |
| 232 | findfirst(path) |
| 233 | char *path; |
| 234 | { |
| 235 | #ifdef OS2_32BITAPI |
| 236 | ULONG |
| 237 | #else |
| 238 | USHORT |
| 239 | #endif |
| 240 | res, SearchCount = 1; |
| 241 | |
| 242 | DirHandle = 1; |
| 243 | res = |
| 244 | #ifdef OS2_32BITAPI |
| 245 | DosFindFirst((PSZ) path, &DirHandle, 0L, (PVOID) &ResultBuf, |
| 246 | (ULONG) sizeof(ResultBuf), &SearchCount, 1L); |
| 247 | #else |
| 248 | DosFindFirst((PSZ) path, &DirHandle, 0, &ResultBuf, |
| 249 | (USHORT) sizeof(ResultBuf), &SearchCount, 0L); |
| 250 | #endif |
| 251 | return (!res); |
| 252 | } |
| 253 | |
| 254 | int |
| 255 | findnext() |