Back to index

openldap  2.4.31
Defines | Functions | Variables
string.h File Reference

Go to the source code of this file.

Defines

#define strchr   index
#define strrchr   rindex
#define memcpy(d, s, n)   ((void) bcopy ((s), (d), (n)))
#define memmove(d, s, n)   ((void) bcopy ((s), (d), (n)))
#define strdup(s)   ber_strdup(s)
#define SAFEMEMCPY(d, s, n)   memcpy((d), (s), (n))
#define AC_MEMCPY(d, s, n)   (SAFEMEMCPY((d),(s),(n)))
#define AC_FMEMCPY(d, s, n)
#define STRLENOF(s)   (sizeof(s)-1)
#define AC_STRERROR_R(e, b, l)   ("Unknown error")

Functions

 LDAP_F (char *) ldap_pvt_strtok LDAP_P((char *str
int() strcasecmp ()
int() strncasecmp ()
void *() lutil_memrchr (const void *b, int c, size_t n)

Variables

const char * delim
const char char ** pos

Define Documentation

#define AC_FMEMCPY (   d,
  s,
  n 
)
Value:
do { \
              if((n) == 1) *((char*)(d)) = *((char*)(s)); \
              else AC_MEMCPY( (d), (s), (n) ); \
       } while(0)

Definition at line 87 of file string.h.

#define AC_MEMCPY (   d,
  s,
  n 
)    (SAFEMEMCPY((d),(s),(n)))

Definition at line 86 of file string.h.

#define AC_STRERROR_R (   e,
  b,
  l 
)    ("Unknown error")

Definition at line 115 of file string.h.

#define memcpy (   d,
  s,
  n 
)    ((void) bcopy ((s), (d), (n)))

Definition at line 44 of file string.h.

#define memmove (   d,
  s,
  n 
)    ((void) bcopy ((s), (d), (n)))

Definition at line 46 of file string.h.

#define SAFEMEMCPY (   d,
  s,
  n 
)    memcpy((d), (s), (n))

Definition at line 82 of file string.h.

#define strchr   index

Definition at line 37 of file string.h.

#define strdup (   s)    ber_strdup(s)

Definition at line 57 of file string.h.

#define STRLENOF (   s)    (sizeof(s)-1)

Definition at line 103 of file string.h.

#define strrchr   rindex

Definition at line 39 of file string.h.


Function Documentation

LDAP_F ( char *  )

Definition at line 30 of file kerberos.c.

                                             {KERBEROS}");
void*() lutil_memrchr ( const void b,
int  c,
size_t  n 
)

Definition at line 449 of file utils.c.

{
       if (n != 0) {
              const unsigned char *s, *bb = b, cc = c;

              for ( s = bb + n; s > bb; ) {
                     if ( *--s == cc ) {
                            return (void *) s;
                     }
              }
       }

       return NULL;
}
int() strcasecmp ( )

Variable Documentation

const char char delim

Definition at line 52 of file string.h.

const char int int char int pos

Definition at line 52 of file string.h.