STRCASECMP(3) Linux Programmer's Manual STRCASECMP(3)NAME
strcasecmp, strncasecmp - compare two strings ignoring case
SYNOPSIS
#include <strings.h>
int strcasecmp(const char *s1, const char *s2);
int strncasecmp(const char *s1, const char *s2, size_t n);
DESCRIPTION
The strcasecmp() function compares the two strings s1 and s2, ignoring the case of the characters. It returns an integer less than, equal
to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
The strncasecmp() function is similar, except it only compares the first n characters of s1.
RETURN VALUE
The strcasecmp() and strncasecmp() functions return an integer less than, equal to, or greater than zero if s1 (or the first n bytes
thereof) is found, respectively, to be less than, to match, or be greater than s2.
CONFORMING TO
4.4BSD, POSIX.1-2001.
SEE ALSO bcmp(3), memcmp(3), strcmp(3), strcoll(3), string(3), strncmp(3), wcscasecmp(3), wcsncasecmp(3)COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2010-09-20 STRCASECMP(3)
Check Out this Related Man Page
STRCASECMP(3) Linux Programmer's Manual STRCASECMP(3)NAME
strcasecmp, strncasecmp - compare two strings ignoring case
SYNOPSIS
#include <strings.h>
int strcasecmp(const char *s1, const char *s2);
int strncasecmp(const char *s1, const char *s2, size_t n);
DESCRIPTION
The strcasecmp() function compares the two strings s1 and s2, ignoring the case of the characters. It returns an integer less than, equal
to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
The strncasecmp() function is similar, except it only compares the first n characters of s1.
RETURN VALUE
The strcasecmp() and strncasecmp() functions return an integer less than, equal to, or greater than zero if s1 (or the first n bytes
thereof) is found, respectively, to be less than, to match, or be greater than s2.
CONFORMING TO
4.4BSD, POSIX.1-2001.
SEE ALSO bcmp(3), memcmp(3), strcmp(3), strcoll(3), string(3), strncmp(3), wcscasecmp(3), wcsncasecmp(3)COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2010-09-20 STRCASECMP(3)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)