diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-24 00:03:41 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-24 00:03:41 +0100 |
commit | ad441e867d0a153fd034abdefc3cb5b73bf2207a (patch) | |
tree | 2343d48bd48917c4fe0f1251c2d7c0aaeacb7740 /FICS/board.c | |
parent | cf65c78a5913dc047e997e52f1bfedd2da045e74 (diff) |
Reformatted append_holding_display()
Diffstat (limited to 'FICS/board.c')
-rw-r--r-- | FICS/board.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/FICS/board.c b/FICS/board.c index 8e23ac8..c65ee19 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -164,15 +164,16 @@ PRIVATE char *append_holding_machine(char *buf, int g, int c, int p) return buf; } -PRIVATE char *append_holding_display(char *buf, game_state_t *gs, int white) +PRIVATE char * +append_holding_display(char *buf, game_state_t *gs, int white) { - if (white) - strcat(buf, "White holding: ["); - else - strcat(buf, "Black holding: ["); - strcat(buf, holding_str(gs->holding[white ? 0 : 1])); - strcat(buf, "]\n"); - return buf; + if (white) + strcat(buf, "White holding: ["); + else + strcat(buf, "Black holding: ["); + strcat(buf, holding_str(gs->holding[white ? 0 : 1])); + strcat(buf, "]\n"); + return buf; } PUBLIC void |