[Previous] [Next]

ldapu_malloc()

Allocates memory (like the standard malloc() function).

Syntax
NSAPI_PUBLIC 
void *ldapu_malloc (int size)
Parameters
This function has the following parameters:
Name Description
size
Size of the memory that you want to allocate.

Returns
If successful, returns a pointer to the newly allocated memory. If memory cannot be allocated, returns NULL.

Description
Call this function to allocate memory. When you are done using the memory, you can free it by calling the ldapu_free() function.

If you want to allocate memory to copy a string, call the ldapu_strdup() function instead.

See Also
ldapu_free(), ldapu_strdup().


[Previous] [Next]


Copyright ⌐ 1997 Netscape Communications Corporation