From ac624049dae3226ab399c817c41f30d9f8f3962b Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 27 Dec 2023 21:57:51 +0100 Subject: Reformatted functions --- FICS/formula.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'FICS') diff --git a/FICS/formula.c b/FICS/formula.c index 6ee632a..8abdc32 100644 --- a/FICS/formula.c +++ b/FICS/formula.c @@ -66,24 +66,24 @@ extern player parray[]; -PRIVATE char *GetPlayersFormula (player *pWho, int clause) +PRIVATE char * +GetPlayersFormula(player *pWho, int clause) { - if (clause==MAX_FORMULA) return (pWho->formula); - else return (pWho->formulaLines[clause]); + if (clause == MAX_FORMULA) + return pWho->formula; + return pWho->formulaLines[clause]; } -/* In MoveIndexPastString, *i is treated as the index into string[]; - this function returns 1 if the character string beginning with - string[*i] match *text, and 0 otherwise. In the former case, *i - is incremented to move the index past *text. -*/ -int MoveIndexPastString (char *string, int *i, char *text) +int +MoveIndexPastString(char *string, int *i, char *text) { - int n = strlen(text); - if (strncasecmp(text, string + *i, n)) return (0); - *i += n; - return (n); -} /* end of function MoveIndexPastString. */ + int n = strlen(text); + + if (strncasecmp(text, string + *i, n)) + return 0; + *i += n; + return n; +} int GetRating(player *p, int gametype) -- cgit v1.2.3