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

    From Tim Rentsch@3:633/10 to All on Mon Mar 23 21:14:34 2026
    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?

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From David Brown@3:633/10 to All on Tue Mar 24 08:58:32 2026
    On 24/03/2026 05:14, Tim Rentsch wrote:
    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?

    You could just ignore Bonita, as a lot of people do. And you could stop necroposting.

    But don't stop the pedantry about C and the C standards. It is often irrelevant for practical coding, but there are plenty of situations
    where it is good to get the terminology exactly right. Take "pedantic
    as hell" as a compliment.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)