Memchr - HP B1476 68020 User Manual

Debugger/emulator
Table of Contents

Advertisement

Chapter 15: Predefined Macros

memchr

memchr
Function
Search for character in memory
Synopsis
char *memchr (str1, byte_value, count)
char
char
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.
570
*str1;
byte_value;

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents