Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gmatch(3G) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

gmatch(3G)                                                       gmatch(3G)

NAME
     gmatch - shell global pattern matching

SYNOPSIS
     cc [flag ...] file ... -lgen [library ...]

     #include <libgen.h>

     int gmatch(const char *str, const char *pattern);

DESCRIPTION
     gmatch() checks whether the null-terminated string str matches the
     null-terminated pattern string pattern. gmatch() returns non-zero if
     the pattern matches the string, zero if the pattern doesn't. A
     backslash \ is used as an escape character in pattern strings.

EXAMPLE
        char *s;
        gmatch (s, "*[a\-]" );

     gmatch() returns non-zero for all strings with a or - as their last
     character.

SEE ALSO
     sh(1).






























Page 1                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026