1regex_t(3type)                                                  regex_t(3type)
2
3
4

NAME

6       regex_t, regmatch_t, regoff_t - regular expression matching
7

LIBRARY

9       Standard C library (libc)
10

SYNOPSIS

12       #include <regex.h>
13
14       typedef struct {
15           size_t    re_nsub;  /* Number of parenthesized subexpressions */
16       } regex_t;
17
18       typedef struct {
19           regoff_t  rm_so;    /* Byte offset from start of string
20                                  to start of substring */
21           regoff_t  rm_eo;    /* Byte offset from start of string to
22                                  the first character after the end of
23                                  substring */
24       } regmatch_t;
25
26       typedef /* ... */  regoff_t;
27

DESCRIPTION

29       regex_t
30              This  is  a  structure type used in regular expression matching.
31              It holds a  compiled  regular  expression,  compiled  with  reg‐
32              comp(3).
33
34       regmatch_t
35              This is a structure type used in regular expression matching.
36
37       regoff_t
38              It is a signed integer type capable of storing the largest value
39              that can be stored in either an  ptrdiff_t  type  or  a  ssize_t
40              type.
41

STANDARDS

43       POSIX.1-2008.
44

HISTORY

46       POSIX.1-2001.
47
48       Prior  to  POSIX.1-2008,  the  type  was capable of storing the largest
49       value that can be stored in either an off_t type or a ssize_t type.
50

SEE ALSO

52       regex(3)
53
54
55
56Linux man-pages 6.04              2023-03-30                    regex_t(3type)
Impressum