regcmp
PURPOSE
Compiles patterns.
SYNOPSIS
regcmp [ - ] files
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 ini-
tialized 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 Refer-
ence.)
FLAG
- Places the output in file.c
RELATED INFORMATION
The regcmp subroutine in AIX Operating System Technical
Reference.