From 9c45d9ad13fdf439d44d7443ae75da15ea0223ed Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 19 Aug 2013 16:39:41 -0400 Subject: Initial checkin Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy. --- ldapaddressbook/abookfind.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ldapaddressbook/abookfind.c (limited to 'ldapaddressbook/abookfind.c') diff --git a/ldapaddressbook/abookfind.c b/ldapaddressbook/abookfind.c new file mode 100644 index 0000000..48c1007 --- /dev/null +++ b/ldapaddressbook/abookfind.c @@ -0,0 +1,24 @@ +/* +** Copyright 2006, Double Precision Inc. +** +** See COPYING for distribution information. +*/ + +#include "config.h" +#include "ldapaddressbook.h" + +#include +#include +#include + +const struct ldapabook *ldapabook_find(const struct ldapabook *l, + const char *n) +{ + while (l) + { + if (strcmp(l->name, n) == 0) return (l); + + l=l->next; + } + return (0); +} -- cgit v1.2.3