Back to index

courier  0.68.2
abookfind.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 2006, Double Precision Inc.
00003 **
00004 ** See COPYING for distribution information.
00005 */
00006 
00007 #include      "config.h"
00008 #include      "ldapaddressbook.h"
00009 
00010 #include      <stdio.h>
00011 #include      <string.h>
00012 #include      <stdlib.h>
00013 
00014 const struct ldapabook *ldapabook_find(const struct ldapabook *l,
00015                                    const char *n)
00016 {
00017        while (l)
00018        {
00019               if (strcmp(l->name, n) == 0)       return (l);
00020 
00021               l=l->next;
00022        }
00023        return (0);
00024 }