[Date Prev][Date Next]
RE: LDAP C API : ldap_next_attribute (ITS#778)
At 03:48 AM 10/2/00 +0000, email@example.com wrote:
>>Also, note that your example code is flawed. It assumes
>>LDAP_ERROR_NUMBER will be set to LDAP_SUCCESS on success.
>>LDAP_ERROR_NUMBER behaves like errno. The library only
>>sets it upon error.
>If this is the case, how is it possible to reliably check for
>errors? Unlike errno type calls which usually indicate an
>error by returning -1,
>The only way I can see to get around this is to set the error
>code to LDAP_SUCCESS before the call to ldap_next_attribute.
>Is this what you are suggesting?