Faster, more idiomatic C code. Use stiop_crln() in the other place it is used.