From c683d9fe480850da473f98b55d4db7b9c99ab90d Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Tue, 3 Apr 2018 00:00:00 -0600 Subject: [PATCH] procio: fixed grammar in man page plus program comment The only essential change was substituting 'comma' for the word 'colon' in the man page plus program comment. Signed-off-by: Jim Warner --- lib/procio.3 | 12 ++++++------ lib/procio.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/procio.3 b/lib/procio.3 index 0b3bdb6c..f7ae1d67 100644 --- a/lib/procio.3 +++ b/lib/procio.3 @@ -37,7 +37,7 @@ function opens files below whose name is the string to by path and associates a stream with it. The argument .I mode -points to a string beginning with one of the following sequences +points to a string containing one of the following sequences .TP .B r Open a file below @@ -51,17 +51,17 @@ Open a file below for writing even large buffers. The optional delimeter character can be one of the follwoing .BR '\ ' ,\ ',' ,\ '.' ,\ and\ ':' -where the default is the colon +where the default is the comma .BR ',' . -This allows to split very large input lines into pieces at this -delimeter and write each of them to the opened file below +This allows splitting very large input lines into pieces at this +delimeter and writing each of them to the opened file below .IR /proc/## . .TP .B e The underlying file descriptor will be closed if you use any -of the ‘exec...’ functions within your code. +of the `exec...' functions within your code. .PP -The internal API allows to use stdio functions to read and write +The internal API allows the use of stdio functions to read and write large buffers below .IR /proc/## . .PP diff --git a/lib/procio.c b/lib/procio.c index ad9b4de6..7d969644 100644 --- a/lib/procio.c +++ b/lib/procio.c @@ -80,7 +80,7 @@ FILE *fprocopen(const char *path, const char *mode) goto out; } - delim = ','; /* default delimeter is the colon */ + delim = ','; /* default delimeter is the comma */ for (c = 1; c < len; c++) { switch (mode[c]) { case '\0':