… | |
… | |
306 | /* displays the high score file. object is the calling object |
306 | /* displays the high score file. object is the calling object |
307 | * (null if being called via command line.) max is the maximum |
307 | * (null if being called via command line.) max is the maximum |
308 | * number of scores to display. match, if set, is the name or class |
308 | * number of scores to display. match, if set, is the name or class |
309 | * to match to. |
309 | * to match to. |
310 | */ |
310 | */ |
311 | |
311 | static void |
312 | void |
|
|
313 | display_high_score (object *op, int max, const char *match) |
312 | display_high_score (object *op, int max, const char *match) |
314 | { |
313 | { |
315 | const size_t maxchar = 80; |
314 | const size_t maxchar = 80; |
316 | FILE *fp; |
315 | FILE *fp; |
317 | char buf[MAX_BUF], *scorebuf, *bp, *cp; |
316 | char buf[MAX_BUF], *scorebuf, *bp, *cp; |