Back to index

tetex-bin  3.0
Functions | Variables
outocp.c File Reference
#include <kpathsea/config.h>
#include <kpathsea/types.h>
#include <kpathsea/c-proto.h>
#include <kpathsea/c-std.h>
#include <kpathsea/c-fopen.h>
#include <kpathsea/tex-file.h>
#include "otp.h"

Go to the source code of this file.


void ctp_abort P1C (string, s)
int ctp_get P1C (FILE *, input_file)
int main P2C (int, argc, string *, argv)


char * otp_names []
int no_words_read = 0

Function Documentation

void ctp_abort P1C ( string  ,

Definition at line 74 of file outocp.c.

  fprintf (stderr, s);
  exit (EXIT_FAILURE);

Here is the call graph for this function:

void ctp_explain P1C ( FILE ,

Definition at line 83 of file outocp.c.

  int ctpchar;
  ctpchar = getc (input_file);
  if (ctpchar == EOF)
      ctp_abort ("Unexpected end of file\n");
  return ctpchar;
int main P2C ( int  ,
argc  ,
string ,

Definition at line 201 of file outocp.c.

  string input_name, full_input_name;
  FILE *input_file;

  kpse_set_progname (argv[0]);
  switch (argc)
    case 1:
      fprintf (stderr, "outocp: No file given\n");
      return EXIT_FAILURE;
    case 2:
      input_name = argv[1];
      fprintf (stderr, "outocp: Too many arguments\n");
      return EXIT_FAILURE;
  full_input_name = kpse_find_file (input_name, kpse_ocp_format, true);
  if (!full_input_name)
      fprintf (stderr, "outocp: %s not found\n", input_name);
      return EXIT_FAILURE;
  input_file = xfopen (full_input_name, FOPEN_RBIN_MODE);
  ctp_explain (input_file);
  return EXIT_SUCCESS;

Here is the call graph for this function:

Variable Documentation

Definition at line 80 of file outocp.c.

char* otp_names[]

Definition at line 32 of file outocp.c.