/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
return_type1 Class1::memfun3() {
{
  void *fptr;
  return_type1 retval;

  /* to get the address by function name */
  fptr = dlsym(g_sample_dlhandle, "Class1_memfun3_chdl");
  if(fptr == NULL) {
    printf("Error: %s(): dlsym(): %s\n", __class_func__, dlerror());
    return;
  }

  /* to call the chdl function in dynamically 
    loaded library by address */
  dlrunfun(fptr, &retval, memfun3, this);

  return retval;
}
