Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
extern int call_me (void);
int
call_me (void)
{
int (*fp) (void);
fp = dlsym (RTLD_DEFAULT, "foo");
if (fp == NULL)
{
printf ("cannot get address of foo in global scope: %s\n", dlerror ());
exit (1);
}
return fp () - 42;
}