home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / dxe / dxeload.txh < prev    next >
Encoding:
Text File  |  1995-07-24  |  613 b   |  27 lines

  1. @node _dxe_load, misc
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <sys/dxe.h>
  6.  
  7. void *_dxe_load(char *dxe_filename);
  8.  
  9.   static int (*add)(int a, int b);
  10.  
  11.   add = _dxe_load("add.dxe");
  12.   if (add == 0)
  13.     printf("Cannot load add.dxe\n");
  14.   else
  15.     printf("Okay, 3 + 4 = %d\n", add(3,4));
  16. @end example
  17.  
  18. @subheading Description
  19.  
  20. This function loads a dynamic executable image into memory and returns the
  21. entry point for the symbol associated with the image.  The symbol may point
  22. to a structure or a function.
  23.  
  24. @subheading Return Value
  25.  
  26. 0 on failure, the address of the loaded symbol on success.
  27.