PATCOMPILE(3)
π PATCOMPILE(3) β SchilyΒ΄s LIBRARY FUNCTIONS π
okay so bestie, this is the PATCOMPILE(3) page from SchilyΒ΄s LIBRARY FUNCTIONS, and it's literally about getting your matching pattern compiled and ready to slay. β¨
πΈ NAME πΈ
patcompile() β compiles a matching pattern. That's it, that's the whole vibe: pattern goes in, compiled internal form comes out. π
β¨ SYNOPSIS β¨
int patcompile(pattern, length, aux)
char *pattern;
int length;
int aux[];
π¦ DESCRIPTION π¦
patcompile() takes a pattern and compiles it into an internal form β the kind of glow-up that patmatch(3) can actually use. π₯
It scans the string at pattern with size length. Then it fills the array aux with state information for patmatch(3). No cap, aux should have at least length elements β like, at minimum, bestie, don't skimp. π«Ά
π RETURNS π
- It returns
0if the pattern contains an error. Sad girl hours, the compile did not eat. π - Any other values should be passed to
patmatch(3)as thealtargument. That's the handoff, iykyk. π«
π SEE ALSO π
match(1)- For a description of the regular expressions. (The original page says "ot" instead of "of" β a tiny typo moment, but the info is still giving. π)
π NOTES π
The pattern matching functions are based on ones presented by Martin Richards in "A Compact Function for Regular Expression Pattern Matching", Software-Practice and Experience vol 9, 527-534 (1979). Academic icon behavior, honestly. π§
mwah π β this page is from SchilyΒ΄s LIBRARY FUNCTIONS, written by Joerg Schilling, dated 2022/09/09, and yes bestie, it's PATCOMPILE(3) to the very end πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright 1985,1995-2016 J. Schilling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms