EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1041 background imageLoading...
Page #1041 background image
Appendix A: System Routines — Strings
999
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
strpbrk
Declaration:
char *
strpbrk
(const char *
s1
, const char *
s2
)
Category(ies):
Strings
Description:
Locates the first occurrence of any character from the string pointed to by
s2
in the string pointed to by
s1
.
Inputs:
s1
Pointer to character string.
s2
Pointer to character set.
Outputs:
Returns a pointer to the located character, or a null pointer if no character
from
s2
is found in
s1
.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: strchr, strcspn, strrchr, strspn, strstr, strtok, memchr
Example:
BOOL ck_vowel2( const char *str1, char *buf )
/* ck_vowel2 - Return TRUE if found a vowel in str1 and build message in buf,
else return FALSE
*/
{
char *ptr;
if( ( ptr = strpbrk(str1, "aeiou")) == NULL )
return( FALSE ); /* no vowels in str1 */
sprintf( buf, "The first vowel found in '%s' is: %c\n", str1, *ptr);
return( TRUE );
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals