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

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

dlsym

Syntax

 
#include <dlfcn.h>

void *dlsym (void *handle, const char *symbol_name);

Description

This function get the address of a symbol defined in a shared loadable image.

The handle argument is the value returned from a call to dlopen, or the special value RTLD_DEFAULT which will search all symbols in the global scope.

The symbol_name is the assembler name, not the C name. For DJGPP/COFF prepend an underscore in front.

Return Value

Returns NULL on failure, pointer to requested symbol on success.

Portability

ANSI/ISO C No
POSIX 1003.1-2001; not 1003.2-1992


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004