Deutsch   English   Français   Italiano  
<IoGcndYJ1ZnQ2zb7nZ2dnZfqnPUAAAAA@brightview.co.uk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 01 Aug 2024 08:24:45 +0000
From: Mark Summerfield <mark@qtrac.eu>
Subject: Re: relearning C: why does an in-place change to a char* segfault?
Newsgroups: comp.lang.c
References: <IoGcndcJ1Zm83zb7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
MIME-Version: 1.0
User-Agent: Pan/0.154 (Izium; 517acf4)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <IoGcndYJ1ZnQ2zb7nZ2dnZfqnPUAAAAA@brightview.co.uk>
Date: Thu, 01 Aug 2024 08:24:45 +0000
Lines: 10
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-SdNV0pFmxXcc8J/q6YeD4JxBolp0Bngl6//RS93q3LRUVCFrZl5OaynhVaTxtLVmmKnt1zaa+iJcMfQ!U4u6qk96XoLZnukK+3K46pEpIMuxiwJ3zmEtL9HS+7avQPG5EU7C9I5picB4OeRfXqoyHo0+P1FT!s+PCJSbXPGHa5/kM9h2YMJ1iZA==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 1197

The formatting was messed up by Pan.

The function was:

void uppercase_ascii(char *s) {
    while (*s) {
        *s = toupper(*s); 
        s++;
    }
}