23.10. slapi_ch_smprintf()
#include "slapi-plugin.h" char *string = slapi_ch_smprintf (format, *arg, ...);
This function takes the following parameter:
|
string
| String that is printed. |
|
format
| A printf-style format string. |
|
arg
| Arguments to pass for the string. |
- 0, if the string is successfully printed and returned.
- 1, if an error occurs.
slapd program terminates.
This function terminates the slapd server with an "out of memory" error message if memory cannot be allocated. The returned string should be freed by calling slapi_ch_free() to avoid memory leaks.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.