public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: ricaljasan@pacific.net
To: libc-alpha@sourceware.org
Subject: [PATCH 05/37] Manual typos: String and Array Utilities
Date: Fri, 06 May 2016 08:31:00 -0000	[thread overview]
Message-ID: <1462521305-19409-6-git-send-email-ricaljasan@pacific.net> (raw)
In-Reply-To: <1462521305-19409-1-git-send-email-ricaljasan@pacific.net>

[-- Attachment #1: Type: text/plain, Size: 44 bytes --]

This is a multi-part message in MIME format.

[-- Attachment #2: Type: text/plain, Size: 207 bytes --]

2016-05-06  Rical Jasan  <ricaljasan@pacific.net>

	* manual/string.texi: Fix typos in the manual.
---
 manual/string.texi |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0005-Manual-typos-String-and-Array-Utilities.patch --]
[-- Type: text/x-patch; name="0005-Manual-typos-String-and-Array-Utilities.patch", Size: 5279 bytes --]

diff --git a/manual/string.texi b/manual/string.texi
index 016fd0b..41e14e5 100644
--- a/manual/string.texi
+++ b/manual/string.texi
@@ -503,7 +503,7 @@ The value returned by @code{memmove} is the value of @var{to}.
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
 @code{wmemmove} copies the @var{size} wide characters at @var{wfrom}
 into the @var{size} wide characters at @var{wto}, even if those two
-blocks of space overlap.  In the case of overlap, @code{memmove} is
+blocks of space overlap.  In the case of overlap, @code{wmemmove} is
 careful to copy the original values of the wide characters in the block
 at @var{wfrom}, including those wide characters which also belong to the
 block at @var{wto}.
@@ -801,7 +801,7 @@ bytes for the end of the string so that we can append the next string.
 For all strings in total the comparisons necessary to find the end of
 the intermediate results sums up to 5500!  If we combine the copying
 with the search for the allocation we can write this function more
-efficient:
+efficiently:
 
 @smallexample
 char *
@@ -859,15 +859,15 @@ concat (const char *str, @dots{})
 With a bit more knowledge about the input strings one could fine-tune
 the memory allocation.  The difference we are pointing to here is that
 we don't use @code{strcat} anymore.  We always keep track of the length
-of the current intermediate result so we can safe us the search for the
+of the current intermediate result so we can save ourselves the search for the
 end of the string and use @code{mempcpy}.  Please note that we also
-don't use @code{stpcpy} which might seem more natural since we handle
-with strings.  But this is not necessary since we already know the
+don't use @code{stpcpy} which might seem more natural since we are handling
+strings.  But this is not necessary since we already know the
 length of the string and therefore can use the faster memory copying
 function.  The example would work for wide characters the same way.
 
 Whenever a programmer feels the need to use @code{strcat} she or he
-should think twice and look through the program whether the code cannot
+should think twice and look through the program to see whether the code cannot
 be rewritten to take advantage of already calculated results.  Again: it
 is almost always unnecessary to use @code{strcat}.
 
@@ -1311,7 +1311,7 @@ return value is zero.
 @comment ISO
 @deftypefun int wcsncmp (const wchar_t *@var{ws1}, const wchar_t *@var{ws2}, size_t @var{size})
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
-This function is the similar to @code{wcscmp}, except that no more than
+This function is similar to @code{wcscmp}, except that no more than
 @var{size} wide characters are compared.  In other words, if the two
 strings are the same in their first @var{size} wide characters, the
 return value is zero.
@@ -2604,7 +2604,7 @@ functions accept either a pointer and a size argument, or pointers to
 them, if they will be modified.
 
 The argz functions use @code{malloc}/@code{realloc} to allocate/grow
-argz vectors, and so any argz vector creating using these functions may
+argz vectors, and so any argz vector created using these functions may
 be freed by using @code{free}; conversely, any argz function that may
 grow a string expects that string to have been allocated using
 @code{malloc} (those argz functions that only examine their arguments or
@@ -2640,7 +2640,7 @@ byte @var{sep}.
 
 @comment argz.h
 @comment GNU
-@deftypefun {size_t} argz_count (const char *@var{argz}, size_t @var{arg_len})
+@deftypefun {size_t} argz_count (const char *@var{argz}, size_t @var{argz_len})
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
 Returns the number of elements in the argz vector @var{argz} and
 @var{argz_len}.
@@ -2775,7 +2775,7 @@ invariant is maintained for argz vectors created by the functions here.
 Replace any occurrences of the string @var{str} in @var{argz} with
 @var{with}, reallocating @var{argz} as necessary.  If
 @var{replace_count} is non-zero, @code{*@var{replace_count}} will be
-incremented by number of replacements performed.
+incremented by the number of replacements performed.
 @end deftypefun
 
 @node Envz Functions, , Argz Functions, Argz and Envz Vectors
@@ -2795,7 +2795,7 @@ considered the name of a ``null'' entry, as distinct from an entry with an
 empty value: @code{envz_get} will return @code{0} if given the name of null
 entry, whereas an entry with an empty value would result in a value of
 @code{""}; @code{envz_entry} will still find such entries, however.  Null
-entries can be removed with @code{envz_strip} function.
+entries can be removed with the @code{envz_strip} function.
 
 As with argz functions, envz functions that may allocate memory (and thus
 fail) have a return type of @code{error_t}, and return either @code{0} or
@@ -2834,7 +2834,7 @@ The @code{envz_add} function adds an entry to @code{*@var{envz}}
 (updating @code{*@var{envz}} and @code{*@var{envz_len}}) with the name
 @var{name}, and value @var{value}.  If an entry with the same name
 already exists in @var{envz}, it is removed first.  If @var{value} is
-@code{0}, then the new entry will the special null type of entry
+@code{0}, then the new entry will be the special null type of entry
 (mentioned above).
 @end deftypefun
 

  parent reply	other threads:[~2016-05-06  8:31 UTC|newest]

Thread overview: 101+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-06  7:55 [PATCH 00/37] Manual typos: Overview ricaljasan
2016-05-06  7:55 ` [PATCH 21/37] Manual typos: Non-Local Exits ricaljasan
2016-05-30 16:16   ` Chris Leonard
2016-05-06  7:55 ` [PATCH 02/37] Manual typos: Error Reporting ricaljasan
2016-05-07  0:54   ` Chris Leonard
2016-05-20  6:59   ` Mike Frysinger
2016-05-06  7:55 ` [PATCH 29/37] Manual typos: System Configuration Parameters ricaljasan
2016-06-23  2:56   ` Chris Leonard
2016-05-06  7:55 ` [PATCH 22/37] Manual typos: Signal Handling ricaljasan
2016-05-30 16:21   ` Chris Leonard
2016-05-06  7:55 ` [PATCH 03/37] Manual typos: Virtual Memory Allocation and Paging ricaljasan
2016-05-07 12:09   ` Chris Leonard
2016-06-16  4:36   ` Mike Frysinger
2016-05-06  7:55 ` [PATCH 01/37] Manual typos: Introduction ricaljasan
2016-05-06 22:34   ` Chris Leonard
2016-05-20  3:25   ` Mike Frysinger
2016-05-06  7:55 ` [PATCH 20/37] Manual typos: Resource Usage and Limitation ricaljasan
2016-05-30 16:15   ` Chris Leonard
2016-05-06  7:55 ` [PATCH 33/37] Manual typos: Internal probes ricaljasan
2016-06-23  3:00   ` Chris Leonard
2016-05-06  7:55 ` [PATCH 08/37] Manual typos: Message Translation ricaljasan
2016-05-22  3:30   ` Chris Leonard
2016-06-16  5:17   ` Mike Frysinger
2016-05-06  7:56 ` [PATCH 37/37] Manual typos: Contributors to ricaljasan
2016-06-23  3:06   ` Chris Leonard
2016-05-06  7:56 ` [PATCH 25/37] Manual typos: Job Control ricaljasan
2016-05-30 18:08   ` Chris Leonard
2016-05-31  7:11     ` Rical Jasan
2016-05-31 17:28       ` Chris Leonard
2016-05-06  7:56 ` [PATCH 28/37] Manual typos: System Management ricaljasan
2016-06-23  2:52   ` Chris Leonard
2016-05-06  7:56 ` [PATCH 36/37] Manual typos: Library Maintenance ricaljasan
2016-06-23  3:05   ` Chris Leonard
2016-05-06  7:56 ` [PATCH 31/37] Manual typos: Debugging support ricaljasan
2016-06-23  2:58   ` Chris Leonard
2016-05-06  7:56 ` [PATCH 26/37] Manual typos: System Databases and Name Service Switch ricaljasan
2016-05-30 18:11   ` Chris Leonard
2016-05-06  7:56 ` [PATCH 30/37] Manual typos: DES Encryption and Password Handling ricaljasan
2016-06-23  2:57   ` Chris Leonard
2016-05-06  8:29 ` [PATCH 04/37] Manual typos: Character Handling ricaljasan
2016-05-07 12:13   ` Chris Leonard
2016-06-16  4:38   ` Mike Frysinger
2016-05-06  8:29 ` [PATCH 35/37] Manual typos: Installing ricaljasan
2016-06-23  3:02   ` Chris Leonard
2016-05-06  8:29 ` [PATCH 24/37] Manual typos: Processes ricaljasan
2016-05-30 16:24   ` Chris Leonard
2016-05-06  8:29 ` [PATCH 16/37] Manual typos: Syslog ricaljasan
2016-05-30 16:04   ` Chris Leonard
2016-05-06  8:29 ` [PATCH 32/37] Manual typos: POSIX Threads ricaljasan
2016-06-23  2:59   ` Chris Leonard
2016-05-06  8:29 ` [PATCH 34/37] Manual typos: C Language Facilities in the Library ricaljasan
2016-06-23  3:01   ` Chris Leonard
2016-05-06  8:30 ` [PATCH 18/37] Manual typos: Arithmetic Functions ricaljasan
2016-05-30 16:09   ` Chris Leonard
2016-05-06  8:30 ` [PATCH 07/37] Manual typos: Locales and Internationalization ricaljasan
2016-05-20  8:31   ` Chris Leonard
2016-06-16  4:52   ` Mike Frysinger
2016-05-06  8:30 ` [PATCH 10/37] Manual typos: Pattern Matching ricaljasan
2016-05-28  3:30   ` Chris Leonard
2016-06-16  5:35   ` Mike Frysinger
2016-05-06  8:30 ` [PATCH 15/37] Manual typos: Low-Level Terminal Interface ricaljasan
2016-05-30 14:13   ` Chris Leonard
2016-05-06  8:31 ` [PATCH 27/37] Manual typos: Users and Groups ricaljasan
2016-06-23  2:43   ` Chris Leonard
2016-05-06  8:31 ` [PATCH 14/37] Manual typos: Sockets ricaljasan
2016-05-30 14:04   ` Chris Leonard
2016-05-06  8:31 ` [PATCH 09/37] Manual typos: Searching and Sorting ricaljasan
2016-05-22  4:16   ` Chris Leonard
2016-06-16  5:26   ` Mike Frysinger
2016-05-06  8:31 ` ricaljasan [this message]
2016-05-19 19:42   ` [PATCH 05/37] Manual typos: String and Array Utilities Chris Leonard
2016-06-16  4:41   ` Mike Frysinger
2016-05-06  8:31 ` [PATCH 23/37] Manual typos: The Basic Program/System Interface ricaljasan
2016-05-30 16:22   ` Chris Leonard
2016-05-06  8:32 ` [PATCH 17/37] Manual typos: Mathematics ricaljasan
2016-05-30 16:06   ` Chris Leonard
2016-05-06  8:32 ` [PATCH 06/37] Manual typos: Character Set Handling ricaljasan
2016-05-19 20:11   ` Chris Leonard
2016-06-16  4:45   ` Mike Frysinger
2016-05-06  8:32 ` [PATCH 13/37] Manual typos: File System Interface ricaljasan
2016-05-30 13:46   ` Chris Leonard
2016-05-06  8:32 ` [PATCH 12/37] Manual typos: Low-Level Input/Output ricaljasan
2016-05-29  9:54   ` Chris Leonard
2016-05-06  8:32 ` [PATCH 19/37] Manual typos: Date and Time ricaljasan
2016-05-30 16:14   ` Chris Leonard
2016-05-06  8:33 ` [PATCH 11/37] Manual typos: Input/Output on Streams ricaljasan
2016-05-28  3:53   ` Chris Leonard
2016-05-17  4:53 ` [PING] [PATCH 00/37] Manual typos: Overview ricaljasan
2016-05-17  5:07   ` Carlos O'Donell
2016-05-25  8:29 ` Rical Jasan
2016-06-06  8:04 ` Rical Jasan
2016-06-15 23:38   ` Rical Jasan
2016-06-16  4:35   ` Mike Frysinger
2016-06-16 14:16     ` Rical Jasan
2016-07-11  2:22 ` Rical Jasan
2016-08-18 13:34   ` Chris Leonard
2016-08-19  2:53     ` Rical Jasan
2016-10-05 21:10   ` Rical Jasan
2016-10-06  5:50     ` Siddhesh Poyarekar
2016-10-06  7:13       ` Siddhesh Poyarekar
2016-10-07  1:56         ` Rical Jasan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1462521305-19409-6-git-send-email-ricaljasan@pacific.net \
    --to=ricaljasan@pacific.net \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).