… | |
… | |
41 | |
41 | |
42 | /* |
42 | /* |
43 | * spool works mostly like strtok(char *, ":"), but it can also |
43 | * spool works mostly like strtok(char *, ":"), but it can also |
44 | * log a specified error message if something goes wrong. |
44 | * log a specified error message if something goes wrong. |
45 | */ |
45 | */ |
46 | |
|
|
47 | char * |
46 | char * |
48 | spool (char *bp, char *error) |
47 | spool (char *bp, const char *error) |
49 | { |
48 | { |
50 | static char *prev_pos = NULL; |
49 | static char *prev_pos = NULL; |
51 | char *next_pos; |
50 | char *next_pos; |
52 | |
51 | |
53 | if (bp == NULL) |
52 | if (bp == NULL) |
… | |
… | |
76 | |
75 | |
77 | /* |
76 | /* |
78 | * Does what it says, copies the contents of the first score structure |
77 | * Does what it says, copies the contents of the first score structure |
79 | * to the second one. |
78 | * to the second one. |
80 | */ |
79 | */ |
81 | |
|
|
82 | static void |
80 | static void |
83 | copy_score (score *sc1, score *sc2) |
81 | copy_score (score *sc1, score *sc2) |
84 | { |
82 | { |
85 | assign (sc2->name , sc1->name); |
83 | assign (sc2->name , sc1->name); |
86 | assign (sc2->title , sc1->title); |
84 | assign (sc2->title , sc1->title); |
… | |
… | |
94 | |
92 | |
95 | /* |
93 | /* |
96 | * Writes the given score structure to a static buffer, and returns |
94 | * Writes the given score structure to a static buffer, and returns |
97 | * a pointer to it. |
95 | * a pointer to it. |
98 | */ |
96 | */ |
99 | |
|
|
100 | static char * |
97 | static char * |
101 | put_score (score *sc) |
98 | put_score (score *sc) |
102 | { |
99 | { |
103 | static char buf[MAX_BUF]; |
100 | static char buf[MAX_BUF]; |
104 | |
101 | |