If you can't find the information you need on interfacing with C in the g77 manual, could you tell us how to improve it? (You should be careful of mixing Fortran i/o and C i/o on the same unit/file descriptor.)