Memchr - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

memchr

Function
Search for character in memory
Synopsis
char *memchr (str1, byte_value, count)
char
*str1;
char
byte_value;
unsigned count;
Description
The memchr macro locates the character byte_value in the first count bytes of
memory area str1.
Diagnostics
The memchr macro returns a pointer to the first occurrence of character
byte_value in the first count characters in memory area str1. If byte_value does
not occur, memchr returns a NULL pointer. For debugger variables, -1
(0xFFFFFFFF) is returned if byte_value does not occur.
Chapter 11: Predefined Macros
memchr
461

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents