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)  

getaline.c File Reference
#include "leafnode.h"
#include <stdio.h>
#include <sys/types.h>
#include <syslog.h>
#include <string.h>
#include <sys/stat.h>
#include "ln_log.h"
Include dependency graph for getaline.c:

Go to the source code of this file.

Functions

static char * ygetaline (int mode, FILE *f)
 
char * getaline (FILE *f)
 
void freegetaline (void)
 

Function Documentation

◆ freegetaline()

void freegetaline ( void  )

Definition at line 89 of file getaline.c.

References ygetaline().

Referenced by freeconfig(), and main().

◆ getaline()

◆ ygetaline()

static char * ygetaline ( int  mode,
FILE *  f 
)
static
Parameters
mode0: regular, 1: free memory

Definition at line 33 of file getaline.c.

References debug, getline(), len, ln_log(), LNLOG_CTOP, LNLOG_SDEBUG, LNLOG_SERR, and mode.

Referenced by freegetaline(), and getaline().