s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
columnt.c File Reference
#include <unistd.h>
#include "alloc.h"
#include "logmsg.h"
#include "buffer.h"
#include "stralloc.h"
#include "exit.h"
#include "readclose.h"
Include dependency graph for columnt.c:

Go to the source code of this file.

Macros

#define WHO   "columnt"
 
#define BSIZE   4096
 

Functions

void nomem ()
 
void die_read ()
 
void die_write ()
 
void nothing ()
 
void printline ()
 
void maxfield_check (int fieldnum, char *buf, int len)
 
void width_check (int fieldnum, char *buf, int len)
 
void width_init ()
 
void printfield (int fieldnum, char *buf, int len)
 
void split (void(*dofield)(), void(*doline)())
 
int main ()
 

Variables

char outbuf [BSIZE]
 
buffer bo = BUFFER_INIT(write,1,outbuf,sizeof(outbuf))
 
stralloc file = {0}
 
intwidth
 
int maxfield = 0
 

Macro Definition Documentation

◆ BSIZE

#define BSIZE   4096

Definition at line 11 of file columnt.c.

◆ WHO

#define WHO   "columnt"

Definition at line 9 of file columnt.c.

Function Documentation

◆ die_read()

void die_read ( void  )

Definition at line 17 of file columnt.c.

Here is the caller graph for this function:

◆ die_write()

void die_write ( )

Definition at line 18 of file columnt.c.

Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 90 of file columnt.c.

Here is the call graph for this function:

◆ maxfield_check()

void maxfield_check ( int  fieldnum,
char *  buf,
int  len 
)

Definition at line 34 of file columnt.c.

Here is the caller graph for this function:

◆ nomem()

void nomem ( )

Definition at line 16 of file columnt.c.

Here is the caller graph for this function:

◆ nothing()

void nothing ( )

Definition at line 24 of file columnt.c.

Here is the caller graph for this function:

◆ printfield()

void printfield ( int  fieldnum,
char *  buf,
int  len 
)

Definition at line 54 of file columnt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printline()

void printline ( )

Definition at line 29 of file columnt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ split()

void split ( void(*)()  dofield,
void(*)()  doline 
)

Definition at line 68 of file columnt.c.

Here is the caller graph for this function:

◆ width_check()

void width_check ( int  fieldnum,
char *  buf,
int  len 
)

Definition at line 39 of file columnt.c.

Here is the caller graph for this function:

◆ width_init()

void width_init ( )

Definition at line 44 of file columnt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ bo

buffer bo = BUFFER_INIT(write,1,outbuf,sizeof(outbuf))

Definition at line 14 of file columnt.c.

◆ file

stralloc file = {0}

Definition at line 20 of file columnt.c.

◆ maxfield

int maxfield = 0

Definition at line 22 of file columnt.c.

◆ outbuf

char outbuf[BSIZE]

Definition at line 13 of file columnt.c.

◆ width

int* width

Definition at line 21 of file columnt.c.