Sujet : Re: relearning C: why does an in-place change to a char* segfault?
De : mark (at) *nospam* qtrac.eu (Mark Summerfield)
Groupes : comp.lang.cDate : 01. Aug 2024, 09:24:45
Autres entêtes
Message-ID : <IoGcndYJ1ZnQ2zb7nZ2dnZfqnPUAAAAA@brightview.co.uk>
References : 1
User-Agent : Pan/0.154 (Izium; 517acf4)
The formatting was messed up by Pan.
The function was:
void uppercase_ascii(char *s) {
while (*s) {
*s = toupper(*s);
s++;
}
}