int myopenimage(const char *in)
{
  static int handle=0;
  fprintf(stderr, , in);
  return handle++;
}

int main()
{
  void *imglib;
  int (*extopenimage)(const char *);
  int imghandle;

  imglib = dlopen(, RTLD_LAZY);
  if ( imglib != NULL ) {
    
    *(void **)(&extopenimage) = dlsym(imglib, );
    
    
    imghandle = extopenimage();
  } else {
    imghandle = myopenimage();
  }
  printf(, imghandle);
  
  if (imglib != NULL ) dlclose(imglib);
  return EXIT_SUCCESS;
}