Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

malloc(3)

bstring(3)

strcat(3)

strncat(3)

strcmp(3)

strncmp(3)

strcpy(3)

strncpy(3)

strlen(3)

strchr(3)

strrchr(3)

strpbrk(3)

strspn(3)

strcspn(3)

strtok(3)

index(3)

rindex(3)



  strstr(3)                           CLIX                           strstr(3)



  NAME

    strstr - Returns a pointer to the first occurence of a specified string

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <string.h>

    char *strstr(
      const char *s1, ,
      const char *s2 );

  PARAMETERS

    s1   A pointer to a character string.

    s2   A pointer to a character string.

  DESCRIPTION

    The strstr() function returns a pointer to the first occurrence of the
    pattern string s2 in s1.  For example, if s1 is "string thing" and s2 is
    "ing", strstr() returns "ing thing".  If s2 does not occur in s1, strstr()
    returns NULL.

    This function operates on null-terminated strings.

  RETURN VALUES

    If s2 does not occur in s1, strstr() returns NULL.

  RELATED INFORMATION

    Functions:  malloc(3), bstring(3), strcat(3), strncat(3), strcmp(3),
    strncmp(3), strcpy(3), strncpy(3), strlen(3), strchr(3), strrchr(3),
    strpbrk(3), strspn(3), strcspn(3), strtok(3), index(3), rindex(3)














  2/94 - Intergraph Corporation                                              1




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026