'\" te .\" Copyright 1989 AT&T .\" Copyright (c) 1998, 2014, Oracle and/or its affiliates. All Rights Reserved .TH dlerror 3C "23 April 2014" "SunOS 5.11" "Standard C Library Functions" .SH NAME dlerror \- get diagnostic information .SH SYNOPSIS .LP .nf #include \fBchar *\fR\fBdlerror\fR(\fBvoid\fR); .fi .SH DESCRIPTION .sp .LP The \fBdlerror()\fR function returns a null-terminated character string that describes the last error that occurred during dynamic linking processing. The returned string contains no trailing newline. If no dynamic linking errors have occurred since the last invocation of \fBdlerror()\fR, \fBdlerror()\fR returns \fINULL\fR. Thus, invoking \fBdlerror()\fR a second time, immediately following a prior invocation, results in \fINULL\fR being returned. .SH USAGE .sp .LP The \fBdlerror()\fR function is one of a family of functions that give the user direct access to the dynamic linking facilities. These facilities are available to dynamically-linked processes only. See the \fIOracle Solaris 11.3 Linkers and Libraries Guide\fR. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe _ StandardSee \fBstandards\fR(5). .TE .SH SEE ALSO .sp .LP \fBld\fR(1), \fBdladdr\fR(3C), \fBdlclose\fR(3C), \fBdldump\fR(3C), \fBdlopen\fR(3C), \fBdlsym\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5) .sp .LP \fIOracle Solaris 11.3 Linkers and Libraries Guide\fR .SH NOTES .sp .LP The messages returned by \fBdlerror()\fR can reside in a static buffer that is overwritten on each call to \fBdlerror()\fR. Application code should not write to this buffer. Programs wanting to preserve an error message should make their own copies of that message.