MBRUNE man page on 4.4BSD

Man page or keyword search:  
man Server   1065 pages
apropos Keyword Search (all sections)
Output format
4.4BSD logo
[printable version]

MBRUNE(3)		 BSD Library Functions Manual		     MBRUNE(3)

NAME
     mbrune, mbrrune, mbmb — multibyte rune support for C

SYNOPSIS
     #include <rune.h>

     char *
     mbrune(const char *string, rune_t rune);

     char *
     mbrrune(const char *string, rune_t rune);

     char *
     mbmb(const char *string, char *pattern);

DESCRIPTION
     These routines provide the corresponding functionality of strchr(),
     strrchr() and strstr() for multibyte strings.

     The mbrune() function locates the first occurrence of rune() in the
     string pointed to by string.  The terminating NULL character is consid‐
     ered part of the string.  If rune is ‘\0’, mbrune() locates the terminat‐
     ing ‘\0’.

     The mbrrune() function locates the last occurrence of rune in the string
     string.  If rune is ‘\0’, mbrune() locates the terminating ‘\0’.

     The mbmb() function locates the first occurrence of the null-terminated
     string pattern in the null-terminated string string. If pattern is the
     empty string, mbmb() returns string; if pattern occurs nowhere in string,
     mbmb() returns NULL; otherwise mbmb() returns a pointer to the first
     character of the first occurrence of pattern.

RETURN VALUES
     The function mbrune() returns a pointer to the located character, or NULL
     if the character does not appear in the string.

     The mbrrune() function returns a pointer to the character, or NULL if the
     character does not appear in the string.

     The mbmb() function returns a pointer to the pattern, or NULL if the
     pattern does not appear in the string.

SEE ALSO
     euc(4), mbrune(3), rune(3), setlocale(3), utf2(4)

HISTORY
     The mbrune(), mbrrune(), and mbmb() functions first appeared in Plan 9
     from Bell Labs as utfrune(), utfrrune(), and utfutf().

BSD				March 28, 2024				   BSD
[top]

List of man pages available for 4.4BSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net