Fix [f]getc return value usage in 40_stdio test