src/chess/pgn.h

changeset 102
463c648e6a9b
parent 60
0c50aac49e55
equal deleted inserted replaced
101:d4f19182fdc2 102:463c648e6a9b
37 #ifdef __cplusplus 37 #ifdef __cplusplus
38 extern "C" { 38 extern "C" {
39 #endif 39 #endif
40 40
41 int read_pgn(FILE *stream, GameState *gamestate, GameInfo *gameinfo); 41 int read_pgn(FILE *stream, GameState *gamestate, GameInfo *gameinfo);
42 size_t write_pgn(FILE* stream, GameState *gamestate, GameInfo *gameinfo); 42 void write_pgn(FILE* stream, GameState *gamestate, GameInfo *gameinfo);
43 void compute_fen(char *str, GameState *gamestate); 43 void compute_fen(char *str, GameState *gamestate);
44 44
45 const char* pgn_error_str(int code); 45 const char* pgn_error_str(int code);
46 46
47 #ifdef __cplusplus 47 #ifdef __cplusplus

mercurial