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.

Macros

#define MAXHEADERSIZE   2047
 

Functions

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[])
 

Variables

int debug = 0
 
int verbose
 

Macro Definition Documentation

◆ MAXHEADERSIZE

#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 
)
static

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 
)
static

Definition at line 38 of file applyfilter.c.

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

Referenced by readheaders().

◆ unfold()

static void unfold ( char *  t)
static

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