Added a C function to library for easier detection from autoconf.