strstr.de

ldmud-3.3.719/doc/efun.de/strstr.de · 698 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

SYNOPSIS
        int strstr(string str, string muster);
        int strstr(string str, string muster, int pos);

BESCHREIBUNG
        Liefert den Index des ersten Auftretens von <muster> in <str>,
        ausgehend von der Position <pos>, wobei in <str> vorwaerts gesucht
        wird. Wird <pos> nicht angegeben, wird als Standardwert 0 gesetzt,
        also vom Beginn von <str> her gesucht.

        Wenn <muster> nicht gefunden wird, wird -1 zurueck geliefert.

        Wenn <pos> negativ ist, bezeichnet <pos> die Startposition der Suche
        relativ zum Ende von <str>, es wird aber weiterhin vorwaerts gesucht.

SIEHE AUCH
        strrstr(E), strlen(E), sscanf(E), sprintf(E), explode(E)

Site Stats

Snippets: 1791
Codebases: 571