aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-04-12 12:38:38 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-04-12 12:38:38 +0300
commitaf0fb8e52be8abd796f4504f825879ca94f71ae8 (patch)
tree8b23e9f88b606e7f037a46034dff3ad7bcf09eb1 /doc/gawktexi.in
parent3006a420c22133e40e6a0aeaeb9bcd402b0754bd (diff)
parentc8d82e842e7ad94cae039e6c978b4bea1a31c4d5 (diff)
downloadegawk-af0fb8e52be8abd796f4504f825879ca94f71ae8.tar.gz
egawk-af0fb8e52be8abd796f4504f825879ca94f71ae8.tar.bz2
egawk-af0fb8e52be8abd796f4504f825879ca94f71ae8.zip
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index f4fe2596..f991432c 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -17267,7 +17267,7 @@ using a third argument is a fatal error.
@cindexgawkfunc{patsplit}
@cindex split string into array
Divide
-@var{string} into pieces defined by @var{fieldpat}
+@var{string} into pieces (or ``fields'') defined by @var{fieldpat}
and store the pieces in @var{array} and the separator strings in the
@var{seps} array. The first piece is stored in
@code{@var{array}[1]}, the second piece in @code{@var{array}[2]}, and so
@@ -17278,9 +17278,11 @@ It may be either a regexp constant or a string.
If @var{fieldpat} is omitted, the value of @code{FPAT} is used.
@code{patsplit()} returns the number of elements created.
@code{@var{seps}[@var{i}]} is
-the separator string
-between @code{@var{array}[@var{i}]} and @code{@var{array}[@var{i}+1]}.
-Any leading separator will be in @code{@var{seps}[0]}.
+the possibly null separator string
+after @code{@var{array}[@var{i}]}.
+The possibly null leading separator will be in @code{@var{seps}[0]}.
+So a non-null @var{string} with @var{n} fields will have @var{n+1} separators.
+A null @var{string} will not have neither fields nor separators.
The @code{patsplit()} function splits strings into pieces in a
manner similar to the way input lines are split into fields using @code{FPAT}