Memcmp - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Strings

memcmp

Declaration:
int memcmp (const void * buf1 , const void * buf2 , size_t length )
Category(ies):
Strings, Utilities
Description:
Compares length bytes of buf1 against buf2 and returns the result of the
compare.
buf1
Inputs:
buf2
length — Number of bytes to compare.
Outputs:
An integer value is returned as follows.
< 0
= 0
> 0
Note that the return value is the result of subtracting the first pair of values
that differ in the two blocks being compared based on them being signed
chars. Compare this to memucmp which computes the difference based
on the values being unsigned chars.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
memchr, memucmp, strcmp
Example:
See memucmp and FSetPos.
TI-89 / TI-92 Plus Developer Guide
— Pointer to first block to compare.
— Pointer to second block to compare.
— If buf1 is less than buf2 .
— If buf1 is the same as buf2 .
— If buf1 is greater than buf2 .
Not for Distribution
977
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents