Home

regoff_t(3type)

regex_t(3type)regex_t(3type)

regex_t, regmatch_t, regoff_t - regular expression matching

Standard C library (libc)

#include <regex.h>
typedef struct {    size_t    re_nsub;  /* Number of parenthesized subexpressions */} regex_t;
typedef struct {    regoff_t  rm_so;    /* Byte offset from start of string
to start of substring */ regoff_t rm_eo; /* Byte offset from start of string to
the first character after the end of
substring */} regmatch_t;
typedef /* ... */  regoff_t;

This is a structure type used in regular expression matching. It holds a compiled regular expression, compiled with regcomp(3).
This is a structure type used in regular expression matching.
It is a signed integer type capable of storing the largest value that can be stored in either an ptrdiff_t type or a ssize_t type.

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

POSIX.1-2001 and later.

regex(3)

2022-10-30Linux man-pages 6.03