FUNPAIOL(3)

NAME

pat_addpaiol, pat_crtpaiol, pat_frepaiol

SYNOPSYS

struct paiol *pat_addpaiol (lastpaiol, name, format, mode, blank)
struct paiol *lastpaiol;
char *name;
char format;
char mode;
unsigned char blank;

struct paiol *pat_crtpaiol (listpaiol)
struct paiol *listpaiol;
void pat_frepaiol (listpaiol)
struct paiol *listpaiol;

PARAMETERS

lastpaiol
    pointer on the last paiol structure

name
    input-output's name

format
    input-output's format

mode
    input-output's mode

blank
    number of blank columns to be printed after the input-output value

listpaiol
    list of paiol structures to be deleted or put in a table

DESCRIPTION

A paiol is a data structure representing a one-bit input-output.

pat_addpaiol() adds a paiol structure at the top of a list of paiol structures. The name registered in the paiol is produced by namealloc(). The function returns the pointer of the new list. No check is made by this function.

pat_crtpaiol() creates a table of paiol structures. This table is organized in a simply chained list. Then, pat_crtpaiol() copies the content of the old paiol list in the new table. No check is made by this function.

pat_frepaiol() deletes a list of paiol structures. No check is made by this function.

EXAMPLE

#include <pat106.h>
struct paiol *list;
struct paiol *final_list;
list = pat_addpaiol (list, "INA", 'X', 'I', 10);
final_list = pat_crtpaiol (list);
pat_frepaiol (list);

SEE ALSO

libpat(3), paiol(3), namealloc(3)