Back to index

tetex-bin  3.0
Functions
coerce.h File Reference

Go to the source code of this file.

Functions

strnumber getjobname P1H (void)
void calledit P4H (packedASCIIcode *, poolpointer, integer, integer)

Function Documentation

strnumber getjobname P1H ( void  ) [read]

Definition at line 260 of file afm2tfm.c.

                  {
   register char *p ;
   register int c ;

   param = buffer ;
   for (p=buffer; (c=getc(afmin)) != EOF;) {
      if (p - buffer >= INBUFSIZE)
         error("! input line too long; perhaps input file is malformed?") ;
      *p++ = c ;
      if (c == '\r') {
         c = getc(afmin) ;
         if (c != EOF) {
            if (c == '\n') {
               *p++ = c ;
            } else {
               ungetc(c, afmin) ;
            }
         }
         break ;
      } else if (c == '\n') {
         break ;
      }
   }
   *p = 0 ;
   (void)strcpy(obuffer, buffer) ;
   if (p == buffer && c == EOF)
      return(0) ;
   else
      return(1) ;
}
void calledit P4H ( packedASCIIcode *  ,
poolpointer  ,
integer  ,
integer   
)