/*
 * $Header: /udir/vixie/src/mail11/d-1.7beta/RCS/text.h,v 1.2 1991/09/23 01:41:05 vixie Exp $
 *
 * Definition module for the TEXT abstraction.
 *
 * This allows one to maintain a linked-list of lines of text, thus
 * preserving record boundaries.  No constraints are placed on the
 * text itself, and "lines" may be of arbitrary length.
 */

#include "defs.h"

struct text_line {
    struct text_line *next;
    int length;
    char text[1];
};

struct text_msg {
    struct text_line *head;
    struct text_line *tail;
};

struct text_msg *TEXT_Init P(());
void TEXT_Erase P((struct text_msg *));
void TEXT_Append P((struct text_msg *, char *, int));
