Dear Bruno and Collin, Thank you very much for the nice tips, it was very useful :-)
Cheers, Mohammad On 11/28/25 12:59 AM, Bruno Haible wrote:
Collin Funk wrote:optc = getopt_long (argc, argv, "+f:s:w", long_options, nullptr);Note also the first character '+' (or '-') in the 3rd argument to getopt_long(). This is necessary, because without it, getopt_long() reorders the arguments so that those that start with '-' all come before the arguments that do not start with '-'. Which probably leads to nonsense if some of these arguments are negative numbers. Bruno
