Deutsch English Français Italiano |
<usdad0$18du3$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: Implicit String-Literal Concatenation Date: Thu, 7 Mar 2024 21:08:48 -0000 (UTC) Organization: A noiseless patient Spider Lines: 16 Message-ID: <usdad0$18du3$3@dont-email.me> References: <urdsob$1e8e4$7@dont-email.me> <urj1qv$2p32o$1@dont-email.me> <urk6um$33nqv$1@dont-email.me> <urlgfn$3d1ah$3@dont-email.me> <urlmo7$3eg2j$1@dont-email.me> <urn6sv$3s62i$2@dont-email.me> <urnbh6$3t14d$1@dont-email.me> <87frxcuv87.fsf@nosuchdomain.example.com> <urq4fe$lapm$1@dont-email.me> <urq7fd$lupv$1@dont-email.me> <urqrsu$q361$1@dont-email.me> <87o7bzrll5.fsf@nosuchdomain.example.com> <urquvb$qn8n$2@dont-email.me> <87bk7ysysj.fsf@nosuchdomain.example.com> <us6876$3jpc3$5@dont-email.me> <87y1axp9a7.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 7 Mar 2024 21:08:48 -0000 (UTC) Injection-Info: dont-email.me; posting-host="63d07f27dc2a6beb992a482a5dec0d77"; logging-data="1324995"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bBzLp5fNhuHFT6mX9Enq4" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:vln3hIGmK0PHCW6GkVRmTQUj7Bg= Bytes: 1982 On Mon, 04 Mar 2024 20:55:28 -0800, Keith Thompson wrote: > Lawrence D'Oliveiro <ldo@nz.invalid> writes: > >> On Thu, 29 Feb 2024 14:14:52 -0800, Keith Thompson wrote: >> >>> "A *string* is a contiguous sequence of characters terminated by and >>> including the first null character." >> >> So how come strlen(3) does not include the null? > > Because the *length of a string* is by definition "the number of bytes > preceding the null character". So the “string” itself includes the null character, but its “length” does not?