ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/hiscore.C
(Generate patch)

Comparing deliantra/server/server/hiscore.C (file contents):
Revision 1.18 by pippijn, Mon Jan 15 21:06:20 2007 UTC vs.
Revision 1.19 by root, Sun Mar 18 03:05:40 2007 UTC

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
47char * 46char *
48spool (char *bp, char *error) 47spool (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
82static void 80static void
83copy_score (score *sc1, score *sc2) 81copy_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
100static char * 97static char *
101put_score (score *sc) 98put_score (score *sc)
102{ 99{
103 static char buf[MAX_BUF]; 100 static char buf[MAX_BUF];
104 101

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines