Anteprima
Vedrai una selezione di 1 pagina su 2
Sistemi operativi - Syscall strstr 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

strstr - find a substring

The Single UNIX ® Specification, Version 2

Copyright © 1997 The Open Group

NAME

strstr - find a substring

SYNOPSIS

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

DESCRIPTION

The strstr() function locates the first occurrence in the string pointed to by s1 of the sequence of bytes (excluding the terminating null byte) in the string pointed to by s2.

RETURN VALUE

Upon successful completion, strstr() returns a pointer to the located string or a null pointer if the string is not found. If s2 points to a string with zero length, the function returns s1.

ERRORS

No errors are defined.

EXAMPLES

None.

APPLICATION USAGE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

strchr(), <string.h>.

DERIVATION

Derived from the ANSI C standard.

UNIX ® is a registered Trademark of The Open Group.

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.