to avoid segmentation faults, out of bounds access and integer overflow make parseable for splint suppress splint warnings about datatype cc_t fix type of return value for read() add checks before accessing tty