Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ regcmp(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought



REGCMP(1,C)                 AIX Commands Reference                  REGCMP(1,C)



-------------------------------------------------------------------------------
regcmp



PURPOSE

Compiles patterns.

SYNTAX


          +-----+
regcmp ---|     |-- file --|
          +- - -+ ^      |
                  +------+


DESCRIPTION

The regcmp command compiles the pattern in file, placing its output in file.i.

In most cases, regcmp makes unnecessary the use of the regcmp system call in
your C programs, saving execution time and program size.  The output of regcmp
is C source code.  Make each file entry a C variable name, followed by one or
more blanks, followed by a pattern enclosed in double quotation marks (" ").
Compiled patterns are initialized char declarations.  Thus, file.i can be
included in C programs, and file.c can be a file parameter to the cc command.
The C program that uses regcmp output should use the regex subroutine to apply
it to a string.  (See regcmp and regex in AIX Operating System Technical
Reference.)

FLAG

-  Places the output in file.c

RELATED INFORMATION

See the regcmp subroutine in AIX Operating System Technical Reference.
















Processed November 8, 1990        REGCMP(1,C)                                 1



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