nbd_get_package_name3
Return the name of the library
Usage
#include <libnbd.h>const char * nbd_get_package_name (struct nbd_handle *h);
Overview
Returns the name of the library, always "libnbd" unless the library was modified with another name at compile time.
Return value
This call returns a statically allocated string, valid for the lifetime of the process or until libnbd is unloaded by dlclose(3). You must not try to free the string.
Errors
This function does not fail.
The following parameters must not be NULL: "h". For more information see "Non-NULL parameters" in libnbd(3).
Version
This function first appeared in libnbd 1.0.
If you need to test if this function is available at compile time check if the following macro is defined:
#define LIBNBD_HAVE_NBD_GET_PACKAGE_NAME 1
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.