Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Freeing a dynamically allocated array of structs within a struct in C
Date: Mon, 06 Sep 2021 05:46:53 -0700
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <86pmtlvpky.fsf@linuxsc.com>
References: <1348a974-54cd-47cf-bf40-7034feaa1f78n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="3555d3b4345d8bc729243ac3d8ab4b79"; logging-data="30354"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rFk+0JLfLEUJikeweEGnUqZXcIV/e/dQ="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:p6TkXe/jAIQDW+JtpUcpmidtrL4= sha1:2bOtRpX16FcKtxaNn8V4Zo4up1I=
Xref: csiph.com comp.lang.c:162644
Lew Pitcher writes:
> On Sun, 29 Aug 2021 15:43:24 +0000, Lew Pitcher wrote:
[...]
>> The strsep() function /does not/ allocate new memory for it's
>> results.
[...]
> Note also that strsep() "modifies it's first argument".
The word "it's" is a contraction for "it is".
The possessive form of the word "it" is "its", with no
apostrophe.
It may help to remember that the same rule applies to all
personal pronouns: an apostrophe always indicates a
contraction with "am", "is" or "are" -
I am, we are - I'm, we're
you are - you're
he is, she is, it is, they are - he's, she's, it's, they're
and there is never an apostrophe in the possessive form of a
personal pronoun -
my, our
your
his, hers, its, their