return (0);
}
-typedef struct buf {
+struct buf {
char *b;
size_t n;
size_t sz;
-} buf;
+};
#define BUF_INIT { 0, 0, 0 }
-static void reset(buf *b) { b->n = 0; }
+static void reset(struct buf *b) { b->n = 0; }
-static int put(buf *b, int ch)
+static int put(struct buf *b, int ch)
{
size_t w;
static int space(const char *name)
{
- static buf b = BUF_INIT;
+ static struct buf b = BUF_INIT;
FILE *fin, *fout = stdout;
char *newname = 0, *oldname = 0;
int rc = TROUBLE, status = OK;