source: rtems/testsuites/psxtests/psxhdrs/strings/strcasecmp_l.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: 1.1 KB
Line 
1/**
2 *  @file
3 *  @brief strcasecmp_l() API Conformance Test
4 */
5
6/*
7 *  COPYRIGHT (c) 2018.
8 *  Himanshu Sekhar Nayak
9 *
10 *  Permission to use, copy, modify, and/or distribute this software
11 *  for any purpose with or without fee is hereby granted.
12 *
13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 */
21
22#ifdef HAVE_CONFIG_H
23#include "config.h"
24#endif
25
26#define _POSIX_C_SOURCE 200809L
27
28#include <strings.h>
29#include <locale.h>
30
31int test( void );
32
33int test( void )
34{
35  char *string1 = "STRING";
36  char *string2 = "string";
37  locale_t locale = NULL;
38  int result;
39
40  result = strcasecmp_l( string1, string2, locale );
41
42  return result;
43}
Note: See TracBrowser for help on using the repository browser.