made sure it works on minix: C89 is a pain. looks good tho.