Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


strrchr()                String Function                strrchr()




Search for rightmost occurrence of a character in a string

#include <string.h>
char *strrchr(string, character);
char *string; int character;

strrchr looks for the last, or rightmost, occurrence of character
within  string.   character is  declared  to be  an  int, but  is
handled within  the function as a char.   Another way to describe
this function is  to say that it performs a  reverse search for a
character in a string.  It is equivalent to the COHERENT function
rindex.

strrchr returns a  pointer to the rightmost occurrence of charac-
ter, or NULL if character could not be found within string.

***** See Also *****

rindex(), string functions, string.h





































COHERENT Lexicon                                           Page 1


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