source: rtems/testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c @ 903c57a

Last change on this file since 903c57a was e3086c9c, checked in by Himanshu40 <himanshuwindows8.1@…>, on Dec 1, 2018 at 5:53:06 PM

psxhdrs: add POSIX API signature tests for strings.h file (GCI 2018)

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/**
2 *  @file
3 *  @brief strcasecmp_l() 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 <strings.h>
26 #include <locale.h>
27
28 int test( void );
29
30 int test( void )
31 {
32   char *string1 = "STRING";
33   char *string2 = "string";
34   int result;
35
36   result = strcasecmp_l( string1, string2, LC_CTYPE );
37
38   return result;
39 }
Note: See TracBrowser for help on using the repository browser.