size()  strlft()

Chapter 5: General Objects and Methods

strchr()

Description

Searches, starting on the left of a string, for the first occurrence of ch. This method is case-sensitive.

Syntax

strchr(char ch);

Parameter

Description

ch

The character for which to search.

Return value

Integer. Returns the index position of the character, if successful, and -1, if failed.

Usage

Pointer to object

Object

char g;

char g;

g = ‘A’;

g = ‘A’;

ps->strchr(g);

mystring strchr(g);





Copyright © 2005. Sybase Inc. All rights reserved. strlft()

View this book as PDF