Server for Information Technologies

(095) 932-9212, 932-9213, 939-0783
E-mail: info@citforum.ru
(!) CIT Forum CD-ROM

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 ed(1), opeeex /usr/include/regexp.h. o a coy popa ed(1), sed(1), grep(1), expr(1) 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).
Comments: info@citmgu.ru
Designed by Andrey Novikov
Copyright © CIT