cmake check_prototype_definition(NULL) examples

libevent/libevent CMakeLists.txt :526

CHECK_PROTOTYPE_DEFINITION(gethostbyname_r
    "struct hostent *gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, int *herr)"
    "NULL"
    "netdb.h"
    EVENT__HAVE_GETHOSTBYNAME_R_5_ARG)

libevent/libevent cmake/CheckPrototypeDefinition.cmake :12

# check_prototype_definition(getpwent_r
#     "struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)"
#     "NULL"
#     "unistd.h;pwd.h"
#     SOLARIS_GETPWENT_R)

wxWidgets/wxWidgets build/cmake/setup.cmake :377

check_prototype_definition(gethostbyname_r
    "struct hostent *gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, int *herr)"
    "NULL"
    "netdb.h"
    HAVE_FUNC_GETHOSTBYNAME_R_5)