args.c: ArgStr() constify and add prototype

This commit is contained in:
Darryl L. Miles 2024-10-12 07:54:04 +01:00 committed by Tim Edwards
parent 2ba1d20ab4
commit e7bfa72298
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ char *
ArgStr(pargc, pargv, argType)
int *pargc;
char ***pargv;
char *argType; /* For error messages: what the following string is
const char *argType;/* For error messages: what the following string is
* supposed to be interpreted as.
*/
{

View File

@ -52,7 +52,7 @@ extern FILE *PaOpen(char *, char *, char *, char *, char *, char **);
extern FILE *PaLockOpen(char *, char *, char *, char *, char *, char **, bool *, int *);
extern char *StrDup(char **, const char *);
extern bool Match(const char *pattern, const char *string);
extern char *ArgStr();
extern char *ArgStr(int *pargc, char ***pargv, const char *argType);
extern bool StrIsWhite(const char *, bool);
extern bool StrIsInt(const char *);
extern bool StrIsNumeric(const char *);