/** @file  psLine.h
 *
 * the psLine functions allow manipulation of fixed-length lines
 */

# ifndef PS_LINE_H
# define PS_LINE_H

// structure to carry a dynamic string
typedef struct
{
    int NLINE;
    int Nline;
    char *line;
}
psLine;

// allocate a line object of length Nline
psLine      *psLineAlloc (int Nline);

// (re-)init the line
bool      psLineInit (psLine *line);

// add the new string segment to the line
bool      psLineAdd (psLine *line, char *format, ...);

# endif /* PS_LINE_H */
