Update read.c

Can compile it under Windows using MinGW