Back to index

tetex-bin  3.0
Functions
db.h File Reference
#include <kpathsea/c-proto.h>
#include <kpathsea/types.h>
#include <kpathsea/str-list.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void kpse_init_db P1H (void)
str_list_type *kpse_db_search P3H (const_string name, const_string path_elt, boolean all)
str_list_type *kpse_db_search_list P3H (const_string *names, const_string path_elt, boolean all)
KPSEDLL void kpse_db_insert P1H (const_string fname)

Function Documentation

void kpse_init_db 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) ;
}
KPSEDLL void kpse_db_insert P1H ( const_string  fname)
str_list_type* kpse_db_search P3H ( const_string  name,
const_string  path_elt,
boolean  all 
)
str_list_type* kpse_db_search_list P3H ( const_string names,
const_string  path_elt,
boolean  all 
)