While the getopt()
function provided by getopt.h
usually returns -1
after there are no more arguments. But probably due to certain issues relating to treatment of signs of integers on arm-devices (to be researched), it might return 255
instead when out of arguments.
2017/10/23