aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-12-20 12:01:36 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-12-20 12:01:36 +0100
commit5b2ab95fed8bd1a40f20aa79ac8e34c33d771cd1 (patch)
treeabe6f944c8020e334b39ae9eb0bc817dce63a0d9
parent87e8e9e479572a88d17bdd5222b4de33e57ee787 (diff)
downloadman-pages-5b2ab95fed8bd1a40f20aa79ac8e34c33d771cd1.tar.gz
regex.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/regex.33
1 files changed, 2 insertions, 1 deletions
diff --git a/man3/regex.3 b/man3/regex.3
index 3144c2ceb1..22c56845a8 100644
--- a/man3/regex.3
+++ b/man3/regex.3
@@ -370,7 +370,8 @@ int main(void)
off = pmatch[0].rm_so + (s \- str);
len = pmatch[0].rm_eo \- pmatch[0].rm_so;
printf("#%d:\en", i);
- printf("offset = %jd; length = %jd\en", (intmax_t) off, (intmax_t) len);
+ printf("offset = %jd; length = %jd\en", (intmax_t) off,
+ (intmax_t) len);
printf("substring = \e"%.*s\e"\en", len, s + pmatch[0].rm_so);
s += pmatch[0].rm_eo;