Construct a file name for a level-type file, which is of the form * something.level (with any old level stripped off). * This assumes there is space on the end of 'file' to append * a two digit number. This is true for 'level' * but be careful if you use it for other things -dgk */
| 603 | * but be careful if you use it for other things -dgk |
| 604 | */ |
| 605 | void |
| 606 | set_levelfile_name(char *file, int lev) |
| 607 | { |
| 608 | char *tf; |
| 609 | |
| 610 | tf = strrchr(file, '.'); |
| 611 | if (!tf) |
| 612 | tf = eos(file); |
| 613 | Sprintf(tf, ".%d", lev); |
| 614 | #ifdef VMS |
| 615 | Strcat(tf, ";1"); |
| 616 | #endif |
| 617 | return; |
| 618 | } |
| 619 | |
| 620 | NHFILE * |
| 621 | create_levelfile(int lev, char errbuf[]) |
no test coverage detected