Anteprima
Vedrai una selezione di 1 pagina su 2
Sistemi operativi - Syscall strcmp Pag. 1
1 su 2
D/illustrazione/soddisfatti o rimborsati
Disdici quando
vuoi
Acquista con carta
o PayPal
Scarica i documenti
tutte le volte che vuoi
Estratto del documento

strcmp

The Single UNIX ® Specification, Version 2

Copyright © 1997 The Open Group

NAME

strcmp - compare two strings

SYNOPSIS

#include <string.h>
int strcmp(const char *s1, const char *s2);

DESCRIPTION

The strcmp() function compares the string pointed to by s1 to the string pointed to by s2.

The sign of a non-zero return value is determined by the sign of the difference between the values of the first pair of bytes (both interpreted as type that differ in the unsigned char) strings being compared.

RETURN VALUE

Upon completion, strcmp() returns an integer greater than, equal to or less than 0, if the string pointed to by s1 is greater than, equal to or less than the string pointed to by s2 respectively.

ERRORS

No errors are defined.

EXAMPLES

None.

APPLICATION USAGE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

strncmp(), <string.h>.

DERIVATION

Derived from Issue 1 of the SVID.

Dettagli
Publisher
A.A. 2012-2013
2 pagine
SSD Scienze matematiche e informatiche INF/01 Informatica

I contenuti di questa pagina costituiscono rielaborazioni personali del Publisher N. A. di informazioni apprese con la frequenza delle lezioni di Sistemi operativi e studio autonomo di eventuali libri di riferimento in preparazione dell'esame finale o della tesi. Non devono intendersi come materiale ufficiale dell'università Università degli studi di Napoli Federico II o del prof Cotroneo Domenico.