buf.h

coolmud2.1.4/src/buf.h · 406 B

From the archive coolmud2.1.4.tar.gz

Download the archive   « Back to the archive contents

/* Copyright (c) 1993 Stephen F. White */

#ifndef _BUF_H_
#define _BUF_H_
#include "string.h"

typedef struct Line Line;

struct Line {
    String	*str;
    const char	*ptr;
    Line	*next;
};

typedef struct Buf {
    Line	*head, *tail;
} Buf;

extern void	buf_add(Buf *buf, String *str);
extern void	buf_delhead(Buf *buf);
extern void	buf_init(Buf *buf);
extern void	buf_free(Buf *buf);

#endif _BUF_H_

Site Stats

Snippets: 1791
Codebases: 571