|
NAMEstructs_type_regex —
structs type for regular expressions
LIBRARYPDEL Library (libpdel, -lpdel)SYNOPSIS#include <sys/types.h>
#include <regex.h>
#include
<pdel/structs/structs.h>
#include
<pdel/structs/type/regex.h>
extern const struct structs_type
structs_type_regex;
DESCRIPTIONTheSTRUCTS_REGEX_TYPE () macro defines a
structs(3)
type (i.e., a struct structs_type ) for describing
regular expressions. The data structure described by this type is a
struct structs_regex :
struct structs_regex { const char *pat; /* ascii pattern */ regex_t reg; /* compiled pattern */ }; pat points to the ASCII form of the regular expression pattern, which is stored in a buffer allocated using typed_mem(3) type mtype. reg is the compiled form of the pattern. The flags parameter is passed to regcomp(3). The default value for this type is the pattern represented by the empty string. Two pre-defined types are included.
SEE ALSOlibpdel(3), regex(3), structs(3), structs_type(3), typed_mem(3)HISTORYThe PDEL library was developed at Packet Design, LLC.http://www.packetdesign.com/
AUTHORSArchie Cobbs ⟨archie@freebsd.org⟩
Visit the GSP FreeBSD Man Page Interface. |