x
.
.
.
.
improved portability by removing open, read, write and replacing with open, freed, fwrite