void*
p4_dlopenext (const char* name)
{
void* lib;
char libname[255];
if (! name) return NULL;
if (! p4_dlself ) p4_dlinit ();
strncpy (libname, name, 255);
strncat (libname, ".sl" , 255);
if (! memchr (libname, '\0' , 255)) return NULL;
lib = shl_load (libname, BIND_IMMEDIATE|BIND_NONFATAL, 0);
return ((void*) lib);
} |