This GIT repo (C language) holds applications and utilities for the Behringer X32 and M32 mixing consoles. Additional details, documentation, implementation examples and apps can be found in my website:
The return value from getopt was never -1 and therefore the program always closed while printing the usage text.
The return value from getopt is int, but the variable was char. (int) -1 is not the same as (char) -1.
And therefor the while loop did never stop and the switch did at the and go to the default case.
The return value from getopt was never -1 and therefore the program always closed while printing the usage text.
The return value from getopt is int, but the variable was char. (int) -1 is not the same as (char) -1. And therefor the while loop did never stop and the switch did at the and go to the default case.