1 /* 2 ** Copyright 2006, Double Precision Inc. 3 ** 4 ** See COPYING for distribution information. 5 */ 6 7 #include "config.h" 8 #include "ldapaddressbook.h" 9 10 #include <stdio.h> 11 #include <string.h> 12 #include <stdlib.h> 13 14 const struct ldapabook *ldapabook_find(const struct ldapabook *l, 15 const char *n) 16 { 17 while (l) 18 { 19 if (strcmp(l->name, n) == 0) return (l); 20 21 l=l->next; 22 } 23 return (0); 24 }