map_chdr_in is OK
correct a bug cause by text string replacement
read_sac_head is OK
map_chdr_out is OK
write_sac_head is OK and correct a bug
OK
malloc->calloc, since calloc will initiate memory with zero value
ReadSacPdw is OK
change function names and coding style