1*1714Smckusick /* Copyright (c) 1979 Regents of the University of California */ 2*1714Smckusick 3*1714Smckusick static char sccsid[] = "@(#)UNSYNC.c 1.1 10/30/80"; 4*1714Smckusick 5*1714Smckusick #include "h00vars.h" 6*1714Smckusick #include "h01errs.h" 7*1714Smckusick 8*1714Smckusick /* 9*1714Smckusick * push back last char read to prepare for formatted read 10*1714Smckusick */ 11*1714Smckusick UNSYNC(curfile) 12*1714Smckusick 13*1714Smckusick register struct iorec *curfile; 14*1714Smckusick { 15*1714Smckusick if (curfile->funit & FWRITE) { 16*1714Smckusick ERROR(EREADIT, curfile->pfname); 17*1714Smckusick return; 18*1714Smckusick } 19*1714Smckusick if ((curfile->funit & SYNC) == 0) { 20*1714Smckusick ungetc(*curfile->fileptr, curfile->fbuf); 21*1714Smckusick } 22*1714Smckusick } 23