Re: QChar and QVoid for strchr(3), memchr(3), et al.
From: Paul Eggert <hidden>
Date: 2026-02-24 17:14:10
From: Paul Eggert <hidden>
Date: 2026-02-24 17:14:10
On 2026-02-24 06:28, Alejandro Colomar wrote:
- In the SYNOPSIS, do you prefer QChar/QVoid or overload style?
QChar *strchr(QChar *s, int c);
vs
char *strnul(char *s);
const char *strnul(const char *s);One documents strchr, the other strnul. And strchr and strnul do differ: strchr has an underlying obsolescent function, and strnul does not. This suggests strchr should be documented differently from strnul.