libexplain  1.4.D001
Defines | Functions
libexplain/wrap_and_print.c File Reference
#include <libexplain/ac/assert.h>
#include <libexplain/ac/ctype.h>
#include <libexplain/ac/limits.h>
#include <libexplain/ac/stdlib.h>
#include <libexplain/ac/string.h>
#include <libexplain/ac/sys/ioctl.h>
#include <libexplain/ac/sys/param.h>
#include <libexplain/ac/termios.h>
#include <libexplain/ac/unistd.h>
#include <libexplain/ac/wchar.h>
#include <libexplain/ac/wctype.h>
#include <libexplain/option.h>
#include <libexplain/string_buffer.h>
#include <libexplain/wrap_and_print.h>

Go to the source code of this file.

Defines

#define DEFAULT_LINE_WIDTH   75
#define MAX_LINE_LENGTH   (PATH_MAX + 10)

Functions

void explain_wrap_and_print_width (FILE *fp, const char *text, int width)
void explain_wrap_and_print (FILE *fp, const char *text)

Define Documentation

#define DEFAULT_LINE_WIDTH   75

Definition at line 40 of file wrap_and_print.c.

#define MAX_LINE_LENGTH   (PATH_MAX + 10)

Definition at line 42 of file wrap_and_print.c.


Function Documentation

void explain_wrap_and_print ( FILE *  fp,
const char *  text 
)

The explain_wrap_and_print function may be used to take a piece of text and wrap it to 80 columns and print it to the given output stream.

Parameters:
fpThe file descriptor to write the output on.
textThe text to be wrapped and printed.

Definition at line 293 of file wrap_and_print.c.

void explain_wrap_and_print_width ( FILE *  fp,
const char *  text,
int  width 
)

The explain_wrap_and_print_width function may be used to take a piece of text and wrap it to the specified number of columns and print it to the given output stream.

Parameters:
fpThe file descriptor to write the output on.
textThe text to be wrapped and printed.
widthThe width of the page, counted in fixed-width character columns.

Definition at line 195 of file wrap_and_print.c.