Back to index

courier  0.68.2
Functions | Variables
comsizelimit.c File Reference
#include "courier.h"
#include "maxlongsize.h"
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

unsigned long config_sizelimit ()

Variables

static char * sizelimit_ptr = 0

Function Documentation

unsigned long config_sizelimit ( )

Definition at line 14 of file comsizelimit.c.

{
char   *sizelimitfilename;

       if (sizelimit_ptr == 0)
       {
              sizelimit_ptr=getenv("SIZELIMIT");
              if (sizelimit_ptr == 0)
              {
                     sizelimitfilename=config_localfilename("sizelimit");
                     sizelimit_ptr=config_read1l(sizelimitfilename);
                     free(sizelimitfilename);
                     if (sizelimit_ptr == 0)
                            sizelimit_ptr="10485760";
              }
       }
       return (atol(sizelimit_ptr));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

char* sizelimit_ptr = 0 [static]

Definition at line 12 of file comsizelimit.c.