[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


mbschr Subroutine

Purpose

Locates a character in a multibyte character string.

Library

Standard C Library (libc.a)

Syntax

#include <mbstr.h>


char *mbschr( MbString MbCharacter)
char *MbString;
mbchar_t MbCharacter;

Description

The mbschr subroutine locates the first occurrence of the value specified by the MbCharacter parameter in the string pointed to by the MbString parameter. The MbCharacter parameter specifies a multibyte character represented as an integer. The terminating null character is considered to be part of the string.

The LC_CTYPE category affects the behavior of the mbschr subroutine.

Parameters


MbString Points to a multibyte character string.
MbCharacter Specifies a multibyte character represented as an integer.

Return Values

The mbschr subroutine returns a pointer to the value specified by the MbCharacter parameter within the multibyte character string, or a null pointer if that value does not occur in the string.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The mbspbrk (mbspbrk Subroutine) subroutine, mbsrchr (mbsrchr Subroutine) subroutine, mbstomb (mbstomb Subroutine) subroutine, wcschr subroutine.

National Language Support Overview for Programming, Subroutines Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]