Groups | Search | Server Info | Login | Register


Groups > comp.lang.c > #397169

Re: relearning C: why does an in-place change to a char* segfault?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups comp.lang.c
Subject Re: relearning C: why does an in-place change to a char* segfault?
Date Mon, 23 Mar 2026 21:14:34 -0700
Organization A noiseless patient Spider
Lines 12
Message-ID <86ikal50et.fsf@linuxsc.com> (permalink)
References <IoGcndcJ1Zm83zb7nZ2dnZfqnPWdnZ2d@brightview.co.uk> <v8fhhl$232oi$1@dont-email.me> <v8fn2u$243nb$1@dont-email.me> <87jzh0gdru.fsf@nosuchdomain.example.com> <v8gte2$2ceis$2@dont-email.me> <20240801174256.890@kylheku.com> <v8i9o8$2oof8$1@dont-email.me> <v8j808$2us0r$1@dont-email.me> <864j7oszhu.fsf@linuxsc.com> <10poav2$3563c$1@raubtier-asyl.eternal-september.org>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Injection-Date Tue, 24 Mar 2026 04:14:37 +0000 (UTC)
Injection-Info dont-email.me; posting-host="49275a8acb80bae5953bf00d88b0bbe4"; logging-data="774486"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18D71bg8Xh4TQROlCfYNMKoo29LBiZVBJ8="
User-Agent Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock sha1:Fi8rSeAkGPJZIERt6ZY/hLxsSDY= sha1:UnrMYffDIm2LTQYzBZy1WzcVnDw=
Xref csiph.com comp.lang.c:397169

Show key headers only | View raw


Bonita Montero <Bonita.Montero@gmail.com> writes:

> Am 14.08.2024 um 02:46 schrieb Tim Rentsch:
>
>> The C language doesn't have integer literals.  C has string
>> literals, and compound literals, and it has integer constants.
>> But C does not have integer literals.
>
> There's no problem when you call them integer literals.
> Except when you're pedantic as hell.

Oh no!  An insult from a narcissist!  Whatever shall I do?

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: relearning C: why does an in-place change to a char* segfault? Bonita Montero <Bonita.Montero@gmail.com> - 2026-03-22 09:58 +0100
  Re: relearning C: why does an in-place change to a char* segfault? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2026-03-23 21:14 -0700
    Re: relearning C: why does an in-place change to a char* segfault? David Brown <david.brown@hesbynett.no> - 2026-03-24 08:58 +0100

csiph-web