leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

applyfilter.c File Reference
#include "leafnode.h"
#include "ln_log.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <ctype.h>
#include "system.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <utime.h>
Include dependency graph for applyfilter.c:

Go to the source code of this file.


#define MAXHEADERSIZE   2047


static char * readtodelim (FILE *f, const char *name, const char *delim, char **bufp, size_t *size)
static void unfold (char *t)
static int readheaders (FILE *f, const char *name, char **bufp, size_t *size)
int main (int argc, char *argv[])


int debug = 0
int verbose

Macro Definition Documentation


#define MAXHEADERSIZE   2047

Definition at line 28 of file applyfilter.c.

Function Documentation

◆ main()

◆ readheaders()

static int readheaders ( FILE *  f,
const char *  name,
char **  bufp,
size_t *  size 

Definition at line 96 of file applyfilter.c.

References name, readtodelim(), and unfold().

Referenced by main().

◆ readtodelim()

static char * readtodelim ( FILE *  f,
const char *  name,
const char *  delim,
char **  bufp,
size_t *  size 

Definition at line 38 of file applyfilter.c.

References critmalloc(), critrealloc(), MAXHEADERSIZE, and name.

Referenced by readheaders().

◆ unfold()

static void unfold ( char *  t)

unfold a header string t in-place. CRLF are converted to LF.

Definition at line 76 of file applyfilter.c.

Referenced by readheaders().

Variable Documentation

◆ debug

◆ verbose