Update knr.c

add endian test