Back to index

tetex-bin  3.0
Functions | Variables
dribble.c File Reference
#include "info.h"
#include "dribble.h"

Go to the source code of this file.

Functions

void open_dribble_file (char *name)
void close_dribble_file (void)
void dribble (unsigned char byte)

Variables

FILEinfo_dribble_file = (FILE *)NULL

Function Documentation

Definition at line 52 of file dribble.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void dribble ( unsigned char  byte)

Definition at line 64 of file dribble.c.

{
  if (info_dribble_file)
    fwrite (&byte, sizeof (unsigned char), 1, info_dribble_file);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void open_dribble_file ( char *  name)

Definition at line 32 of file dribble.c.

{
  /* Perhaps close existing dribble file. */
  close_dribble_file ();

  /* Keystrokes can be non-printable characters, so we need binary I/O.  */
  info_dribble_file = fopen (name, FOPEN_WBIN);

#if defined (HAVE_SETVBUF)
  if (info_dribble_file)
#  if defined (SETVBUF_REVERSED)
    setvbuf (info_dribble_file, _IONBF, (char *)NULL, 1);
#  else
    setvbuf (info_dribble_file, (char *)NULL, _IONBF, 1);
#  endif /* !SETVBUF_REVERSED */
#endif /* HAVE_SETVBUF */
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 27 of file dribble.c.