Unix Man ( )

         

REGEXP(3)


REGEXP(3)
XENIX System V (21 1987)


regexp - opye pacoae peype pae

#define INIT <declarations>

#define GETC() <getc code>

#define PEEKC() <peekc code>

#define UNGETC(c) <ungetc code>

#define RETURN(pointer) <return code>

#define ERROR(val) <error code>

#include <regexp.h>

char *compile (instring, expbuf, endbuf, eof) char *instring, *expbuf, *endpbuf;

int step (string, expbuf) char *string, *expbuf;


ec ocac popa pacoaa peypx pae oeo a ope , opeeex /usr/include/regexp.h. o a coy popa , , , p. oepa coecoc peypx pae oo o a yaec oa.

popa, coye o a, o e ceye 5 apoco, opeeee oopx oo peecoa oepaopy #include <regexp.h>. apoc coyc popao compile.

GETC() Bopaae aee ceyeo coa peypo pae. oceye o GETC() opaa ceye co peypoo pae.

PEEKC() Bopaae aee ceyeo coa peypo pae. oceye o PEEKC() opaa o e co peypoo pae (oop coaae c oepe opaae GETC() coo).

UNGETC(c) po oy, o apye c cae coo, oop opa oepeo o GETC() ( PEEKC()). He oee ooo coa oo epy o ye o, o poe oepeo o GETC(). aee apoca UNGETC(c) oppyec.

RETURN(pointer)

o apoc coyec opaoo xoa popa compile. aae pointer yaae co oce oceeo pacoaoo coa peypoo pae. o coyec popaa, ypa pacpeeee a.

ERROR(val) o apoc coyec aapoo xoa popa compile. Apye val ec oep o (c. ay e).