* Functions to get filenames using wildcards */
| 383 | * Functions to get filenames using wildcards |
| 384 | */ |
| 385 | int |
| 386 | findfirst_file(char *path) |
| 387 | { |
| 388 | union REGS regs; |
| 389 | struct SREGS sregs; |
| 390 | |
| 391 | regs.h.ah = FINDFIRST; |
| 392 | regs.x.cx = 0; /* attribute: normal files */ |
| 393 | regs.x.dx = FP_OFF(path); |
| 394 | sregs.ds = FP_SEG(path); |
| 395 | intdosx(®s, ®s, &sregs); |
| 396 | return !regs.x.cflag; |
| 397 | } |
| 398 | |
| 399 | int |
| 400 | findnext_file(void) |