Lines Matching refs:argv
22 * @tc.desc : Each parameter is valid, argv is an existing command line parameter, and the analysis of the
29 char *argv[] = {"./getopt", "-b"};
31 int result = getopt(argc, argv, optstring);
39 * @tc.desc : Each parameter is valid, argv is an existing command line parameter with a colon, and the analysis
46 char *argv[] = {"./getopt", "-a12345"};
48 int result = getopt(argc, argv, optstring);
56 * @tc.desc : The argv parameter is invalid without a colon, and the parsing of the command line parameters failed
62 char *argv[] = {"./getopt", "-a"};
64 int result = getopt(argc, argv, optstring);
72 * @tc.desc : The argv parameter is invalid, the command line parameter does not exist, and the parsing of the
79 char *argv[] = {"./getopt", "-f"};
81 int result = getopt(argc, argv, optstring);
89 * @tc.desc : The argv argument is invalid, argv is NULL, and parsing command line arguments failed
95 char *argv[] = {"./getopt", NULL};
97 int result = getopt(argc, argv, optstring);
105 * @tc.desc : Invalid argv argument, argv is -, failed to parse command line arguments
111 char *argv[] = {"./getopt", "-"};
113 int result = getopt(argc, argv, optstring);
121 * @tc.desc : argv argument is valid, optstring starts with -, parsing command line arguments fails
127 char *argv[] = {"./getopt", "b"};
129 int result = getopt(argc, argv, optstring);
143 char *argv[] = {"./getopt", "-b"};
145 int result = getopt(argc, argv, optstring);
151 int main(int argc, char *argv[])