diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-16 02:45:20 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-16 02:45:20 +0100 |
| commit | 89c5e3062f1c7cca1e410e0cbd7eda1985db39e4 (patch) | |
| tree | 269aa34358927ca82e68cf2602710e5c6a0a0310 /src/player.c | |
| parent | 493b581dfa5a06134f524fe026a2fde5c4a83af5 (diff) | |
| parent | e291d69fa4d865da8c1d6ece46cb149d1cddb9d8 (diff) | |
Merge branch 'master' of ssh://git@wg.reiner-h.de:22003/~git/oxen
Diffstat (limited to 'src/player.c')
| -rw-r--r-- | src/player.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c new file mode 100644 index 0000000..ee21245 --- /dev/null +++ b/src/player.c @@ -0,0 +1,19 @@ +#include "player.h" +#include <stdlib.h> +#include <string.h> + +player_list* create_playerlist(void) +{ + player_list* pl = malloc(sizeof(player_list)); + memset(pl, 0, sizeof(player_list)); + + return pl; +} + +void cleanup_playerlist(player_list* pl) +{ + for(int i=0; i<MAX_PLAYERS; i++) + free(pl->names[i]); + free(pl); +} + |
