regcmp — Compile Regular Expressions

Synopsis

/usr/ccs/bin/regcmp [-] filename... 

Description

The regcmp command performs a function similar to the regcmp(3C) C language library function. In most cases, the regcmp(1) command precludes the need for calling the regcmp(3C) function from C programs. Bypassing regcmp(3C) saves on both execution time and program size. The regcmp command compiles the regular expressions in filename and puts the output in filename .i.

Options

- Put the output in filename .c. The format of entries in filename is a name (C variable), followed by one or more blanks, followed by one or more regular expressions, enclosed in double quotes. The output of regcmp is C source code. Compiled regular expressions are represented ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.