#Need help in a function

3 messages · Page 1 of 1 (latest)

lethal zincBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

lethal loom
#

Is this for parsing command line arguments?
If so you can "simply" use getopt

lethal zincBOT
#

getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt - Parse command-line options

Synopsis
#include <unistd.h>

int getopt(int argc, char *const argv[],
           const char *optstring);

extern char *optarg;
extern int optind, opterr, optopt;

#include <getopt.h>

int getopt_long(int argc, char *const argv[],
           const char *optstring,
           const struct option *longopts, int *longindex);
int getopt_long_only(int argc, char *const argv[],

... (truncated)