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)  

artutil.c File Reference
#include "leafnode.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <sys/stat.h>
#include <unistd.h>
#include "mastring.h"
#include "ln_log.h"
Include dependency graph for artutil.c:

Go to the source code of this file.

Functions

char * fgetheader (FILE *f, const char *header)
 
char * getheader (const char *filename, const char *header)
 
void store (const char *filename, FILE *filehandle, const char *ngs, const char *msgid)
 

Function Documentation

◆ fgetheader()

char * fgetheader ( FILE *  f,
const char *  header 
)

find a header in an article and return it, without its name.

Definition at line 27 of file artutil.c.

References critstrdup(), debug, debugmode, getaline(), and getfoldedline().

Referenced by doarticle(), doxhdr(), getheader(), main(), and postarticles().

◆ getheader()

char * getheader ( const char *  filename,
const char *  header 
)

Definition at line 62 of file artutil.c.

References fgetheader().

Referenced by domove(), doxhdr(), and getbody_insitu().

◆ store()

void store ( const char *  filename,
FILE *  filehandle,
const char *  ngs,
const char *  msgid 
)