Skip to content

Commit

Permalink
Add comment for isupport_parseint()
Browse files Browse the repository at this point in the history
  • Loading branch information
vanosg committed Aug 18, 2020
1 parent 4218a61 commit 65afc44
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/mod/server.mod/isupport.c
Expand Up @@ -94,6 +94,15 @@ static int keycmp(const char *key1, const char *key2, size_t key2len) {
}
}

/* Parse a 005 value that is expected to be an int.
Args are:
- key
- value (a string numeric)
- minimum expected value
- maximum expected value
- truncate into allowed range if outside allowed range?
- default value to use if outside allowed range
*/
int isupport_parseint(char *key, char *value, int min, int max, int truncate, int defaultvalue, int *dst)
{
long result;
Expand Down

0 comments on commit 65afc44

Please sign in to comment.