Back to index

courier  0.68.2
abookadd.c File Reference
#include "config.h"
#include "ldapaddressbook.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.


int ldapabook_add (const char *f, const struct ldapabook *a)

Function Documentation

int ldapabook_add ( const char *  f,
const struct ldapabook a 

Definition at line 14 of file abookadd.c.

FILE   *fp=fopen(f, "a");

       if (!fp)      return (-1);

       ldapabook_writerec(a, fp);

       if (fflush(fp) || fclose(fp))
              return (-1);
       return (0);

Here is the call graph for this function:

Here is the caller graph for this function: