delorie.com/djgpp/doc/libc/libc_284.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_dxe_load

Syntax

 
#include <sys/dxe.h>

void *_dxe_load(char *dxe_filename);

Description

This function loads a dynamic executable image, whose file name is pointed to by dxe_filename, into memory and returns the entry point for the symbol associated with the image. The symbol may point to a structure or a function.

Return Value

0 on failure, the address of the loaded symbol on success.

Portability

ANSI/ISO C No
POSIX No

Example

 
  static int (*add)(int a, int b);

  add = _dxe_load("add.dxe");
  if (add == 0)
    printf("Cannot load add.dxe\n");
  else
    printf("Okay, 3 + 4 = %d\n", add(3,4));


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004