summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-03-29 23:38:03 +0200
committerGitHub <[email protected]>2020-03-29 23:38:03 +0200
commit133612c76d6074aa364a58d19f2a46ac580463b4 (patch)
tree6376582c1c304c2da4931258853a9417a3dde18d
parent96e5aaf1d45fc637921d72b5b1e43ec22d09ca88 (diff)
downloadSTC-modified-133612c76d6074aa364a58d19f2a46ac580463b4.tar.gz
STC-modified-133612c76d6074aa364a58d19f2a46ac580463b4.zip
Update cgetopt.h
-rw-r--r--c_lib/cgetopt.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/c_lib/cgetopt.h b/c_lib/cgetopt.h
index 08613f62..8fb00645 100644
--- a/c_lib/cgetopt.h
+++ b/c_lib/cgetopt.h
@@ -59,9 +59,9 @@ static void c_getopt_permute(char *argv[], int j, int n) { /* move argv[j] over
// Parse command-line options and arguments
//
// This fuction has a similar interface to GNU's getopt_long(). Each call
-// parses one option and returns the option name. s->arg points to the option
+// parses one option and returns the option name. st->arg points to the option
// argument if present. The function returns -1 when all command-line arguments
-// are parsed. In this case, s->ind is the index of the first non-option
+// are parsed. In this case, st->ind is the index of the first non-option
// argument.
//
// @param st status; shall be initialized to c_getopt_init on the first call
@@ -71,9 +71,9 @@ static void c_getopt_permute(char *argv[], int j, int n) { /* move argv[j] over
// @param optstr option string
// @param longopts long options
//
-// @return ASCII for a short option; c_longopt_t::val for a long option;
-// -1 if argv[] is fully processed; '?' for an unknown option or
-// an ambiguous long option; ':' if an option argument is missing
+// @return ASCII val for a short option; longopt.val for a long option;
+// -1 if argv[] is fully processed; '?' for an unknown option or
+// an ambiguous long option; ':' if an option argument is missing
//
static int c_getopt(c_getopt_t *st, int argc, char *argv[], int permute, const char *optstr, const c_longopt_t *longopts) {
int opt = -1, i0, j;
@@ -167,4 +167,4 @@ static int c_getopt(c_getopt_t *st, int argc, char *argv[], int permute, const c
*/
-#endif \ No newline at end of file
+#endif