dlerror

Gamma: Version 4.0
Prev |  | Next

# `dlerror`

`dlerror` -- reports errors in dl functions.

## Syntax

    dlerror ()

## Arguments

`none`

## Returns

An error message, or 0 if no error has occurred since it was last called.

## Description

This function returns an error message for the most recent error in `dlopen` or `dlclose`. If several errors have occured since the last call to `dlerror`, only the first will return an error message.

## Example

        Gamma> dlopen("nolibraryhere",RTLD_LAZY);
        0
        Gamma> dlopen("norhere",RTLD_LAZY);
        0
        Gamma> dlerror();
        "norhere: cannot open shared object file: No such file or directory"
        Gamma> dlerror();
        nil
        Gamma>

## See Also

`dlopen`, `dlclose`

Prev | Home | Next
`dlclose` | Up | `dlfunc`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.