fopen a file, with OS-dependent bells and whistles */ NOTE: a simpler version of this routine also exists in util/dlb_main.c */
| 441 | /* fopen a file, with OS-dependent bells and whistles */ |
| 442 | /* NOTE: a simpler version of this routine also exists in util/dlb_main.c */ |
| 443 | FILE * |
| 444 | fopen_datafile(const char *filename, const char *mode, int prefix) |
| 445 | { |
| 446 | FILE *fp; |
| 447 | |
| 448 | filename = fqname(filename, prefix, prefix == TROUBLEPREFIX ? 3 : 0); |
| 449 | fp = fopen(filename, mode); |
| 450 | return fp; |
| 451 | } |
| 452 | #endif /* !SFCTOOL */ |
| 453 | |
| 454 | /* ---------- EXTERNAL FILE SUPPORT ----------- */ |
no test coverage detected