Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

strncasecmp(3) [osx man page]

STRCASECMP(3)						   BSD Library Functions Manual 					     STRCASECMP(3)

NAME
strcasecmp, strcasecmp_l, strncasecmp, strncasecmp_l -- compare strings, ignoring case LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <strings.h> int strcasecmp(const char *s1, const char *s2); int strncasecmp(const char *s1, const char *s2, size_t n); #include <strings.h> #include <xlocale.h> int strcasecmp_l(const char *s1, const char *s2, locale_t loc); int strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t loc); DESCRIPTION
The strcasecmp() and strncasecmp() functions compare the null-terminated strings s1 and s2. The strncasecmp() compares at most n characters. Although the strcasecmp() and strncasecmp() functions use the current locale, the strcasecmp_l() and strncasecmp_l() functions may be passed locales directly. See xlocale(3) for more information. RETURN VALUES
The strcasecmp() and strncasecmp() return an integer greater than, equal to, or less than 0, according as s1 is lexicographically greater than, equal to, or less than s2 after translation of each corresponding character to lower-case. The strings themselves are not modified. The comparison is done using unsigned characters, so that '200' is greater than ''. SEE ALSO
bcmp(3), memcmp(3), strcmp(3), strcoll(3), strxfrm(3), tolower(3), xlocale(3) HISTORY
The strcasecmp() and strncasecmp() functions first appeared in 4.4BSD. Their prototypes existed previously in <string.h> before they were moved to <strings.h> for IEEE Std 1003.1-2001 (``POSIX.1'') compliance. BSD
June 9, 1993 BSD

Check Out this Related Man Page

STRCASECMP(3)						   BSD Library Functions Manual 					     STRCASECMP(3)

NAME
strcasecmp, strcasecmp_l, strncasecmp, strncasecmp_l -- compare strings, ignoring case LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <strings.h> int strcasecmp(const char *s1, const char *s2); int strncasecmp(const char *s1, const char *s2, size_t n); #include <strings.h> #include <xlocale.h> int strcasecmp_l(const char *s1, const char *s2, locale_t loc); int strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t loc); DESCRIPTION
The strcasecmp() and strncasecmp() functions compare the null-terminated strings s1 and s2. The strncasecmp() compares at most n characters. Although the strcasecmp() and strncasecmp() functions use the current locale, the strcasecmp_l() and strncasecmp_l() functions may be passed locales directly. See xlocale(3) for more information. RETURN VALUES
The strcasecmp() and strncasecmp() return an integer greater than, equal to, or less than 0, according as s1 is lexicographically greater than, equal to, or less than s2 after translation of each corresponding character to lower-case. The strings themselves are not modified. The comparison is done using unsigned characters, so that '200' is greater than ''. SEE ALSO
bcmp(3), memcmp(3), strcmp(3), strcoll(3), strxfrm(3), tolower(3), xlocale(3) HISTORY
The strcasecmp() and strncasecmp() functions first appeared in 4.4BSD. Their prototypes existed previously in <string.h> before they were moved to <strings.h> for IEEE Std 1003.1-2001 (``POSIX.1'') compliance. BSD
June 9, 1993 BSD
Man Page

11 More Discussions You Might Find Interesting

1. Solaris

mysql-devel

I am trying to install Postfix on a Sun SPARC Solaris 9 server. I am not sure whether it is essential or not but still installed MySQL on that server and it is running fine.Now when I am trying to run the make command as a part of installation of Postfix, it reports the following error. # make ... (1 Reply)
Discussion started by: chrs0302
1 Replies

2. Programming

C program in Unix / Linux - Time differences

Hi Friends, When Iam running c program in redhat linux 7.3 version and PCQ Linux 8.0 version, its taking around 20 seconds. But when Iam running it in HP-UX Release 11i, its taking around 3 minutes. Can anyone throw light on this. Thanks in advance, Praveen. (11 Replies)
Discussion started by: chprvkmr
11 Replies

3. HP-UX

to install unixODBC with problems

I'm trying to install the unixODBC in HP-UX 11.11 (64 bits), but when executing the ./configure I got the following results: root@server:/usr/local/unixODBC-2.2.11# ./configure checking for a BSD-compatible install... /opt/imake/bin/install -c checking whether build environment is sane... yes... (2 Replies)
Discussion started by: paulexpert
2 Replies

4. Solaris

Apache config issue

I want to build a little website on a Sun Blade 100 running Solaris 10. I just went out to apache.org and downloaded Unix Source: httpd-2.2.8.tar.gz After unpacking the tarball, I CD'd into the subdirectory and ran the configure utility. Of course, it crapped out. I see that it is... (17 Replies)
Discussion started by: BrewDudeBob
17 Replies

5. Solaris

Need help in building gcc on solaris.

We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is sailfish@st-kvar02 -> uname -a SunOS st-kvar02 5.10... (7 Replies)
Discussion started by: nalina.hv
7 Replies

6. Programming

get next working day

i want to get next working day from give date, that is other than Saturday or Sunday. suppose given date is 26-DEC-2008 (i.e Friday) then i should get 29-DEC-2008 as next working day(i.e Monday). how code this in C. do we have any calendar API in C. please help me out. thanks and regards (10 Replies)
Discussion started by: anup13
10 Replies

7. Red Hat

Problem with compileing CUPS

Hi guys, I'm trying to install a newer version of CUPS and my compilation fails: # ./configure checking for gawk... gawk checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling...... (4 Replies)
Discussion started by: eliraza6
4 Replies

8. Programming

Need Help with g++ and/or codaLite

I am running a linux-x86 machine with Ubuntu 9.10. Currently we are trying to re-build the data acquisition system in my lab, and to do this we must interface the linux machine with a VME crate via codaLite. My question pertains to the compilation error I am receiving from g++. At the top of... (2 Replies)
Discussion started by: henslewm
2 Replies

9. UNIX for Dummies Questions & Answers

m1join.c

Joins from pipes many to one in one pass and other tricks: $ cat mysrc/m1join.c #include <stdio.h> #include <stdlib.h> #include <strings.h> #include <limits.h> static int msep_ign = 1 ; static int fullouter = 0 ; static int leftouter = 0 ; static int rightouter = 0 ;... (0 Replies)
Discussion started by: DGPickett
0 Replies

10. Shell Programming and Scripting

Processing multiple files (environment setting)

Hello I posted on here a while ago about processing multiple files within a script. See original post below: I have a program cfxfrwb which is designed to remove headers from reports files. The cfxfrwb is located in the following directory /u01/efin/v40/live/bin I run the program against... (8 Replies)
Discussion started by: captainrhodes
8 Replies

11. AIX

Compiling problem - AIX 7.2

Hi We meet errors while running configuration scripts to prepare compiling source code on AIX 7.2. This error does not happen on AIX5.3 and AIX6.1 With the “/usr/bin/sh” from AIX7.2, sometimes , the script runs sucessfully, sometimes not. It’s unstable, and I don’t know why. When... (10 Replies)
Discussion started by: bobochacha29
10 Replies