I noticed that a missing parameter can cause a segfault because the original code did no sanity checking on argv[]. A better solution is to use a standard cli parsing facility like getopt_long().
One downside is switching to getopt forced changing the nonstandard short commands
"-ld" and "-lm" to "-l" and "-m", respectively.
I noticed that a missing parameter can cause a segfault because the original code did no sanity checking on argv[]. A better solution is to use a standard cli parsing facility like getopt_long().
One downside is switching to getopt forced changing the nonstandard short commands "-ld" and "-lm" to "-l" and "-m", respectively.