source: rtems/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c @ e517fe68

Last change on this file since e517fe68 was e517fe68, checked in by Joel Sherrill <joel@…>, on Dec 5, 2018 at 5:58:59 PM

psxhdrs: Fix warnings

  • Property mode set to 100644
File size: 960 bytes
Line 
1/**
2 *  @file
3 *  @brief dlerror() API Conformance Test
4 */
5 /*
6 *  COPYRIGHT (c) 2018.
7 *  Himanshu Sekhar Nayak
8 *
9 *  Permission to use, copy, modify, and/or distribute this software
10 *  for any purpose with or without fee is hereby granted.
11 *
12 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
15 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
16 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
17 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
18 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include <dlfcn.h>
26
27 int test( void );
28
29 int test( void )
30 {
31   const char *errstr;
32
33   errstr = dlerror();
34
35   return (errstr != NULL);
36 }
Note: See TracBrowser for help on using the repository browser.