strindex

Description

Find the first occurence of a specific character in a string held in RAM

Definition

char *strindex(char *str, char val)

Library

LIB/str_lib.bas

Usage

On entry:
str is a pointer to a RAM buffer holding the string to be searched
val is a character to search for
On exit:
The return value is a pointer into the string str which is the address of the first match of the character val. If there is no match the return value is 0