EasyManuals Logo

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 #1018 background imageLoading...
Page #1018 background image
976
Appendix A: System Routines — Strings
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
memchr
Declaration:
void *
memchr
(const void *
buf
, int
value
, size_t
count
)
Category(ies):
Strings, Utilities
Description:
Searches the first
count
bytes of the block pointed to by
buf
for the byte
value.
Inputs:
buf
Buffer to search.
value
Value to search for.
count
Number of bytes to search.
Outputs:
A pointer to the byte value found or NULL if the value was not found.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also: memcmp, strchr
Example:
The following routine, strnlen, returns the length of a string but stops at
maxlen characters.
short strnlen( char *str, short maxlen )
{
char *match;
if (match = memchr( str, 0, maxlen ))
return ( match - str );
else
return maxlen;
}

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