Strchr - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Chapter 11: Predefined Macros

strchr

strchr
Function
Locate first occurrence of a character in a string
Synopsis
char *strchr (str1, byte_value)
char *str1;
char byte_value;
Description
The strchr macro returns a pointer to the first occurrence of the character
byte_value in the string str1, if byte_value occurs in str1.
Diagnostics
If the character byte_value is not found, strchr returns a NULL pointer. For
debugger variables, -1 (0xFFFFFFFF) is returned if byte_value does not occur.
472

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents