Package: manpages-dev
Version: 6.16-1
Severity: normal
File: /usr/share/man/man3/fgets.3.gz
X-Debbugs-Cc: [email protected]
Dear Maintainer,
`man fgets.3` shows the function signature to be
char *fgets(int size;
char s[restrict size], int size, FILE *restrict stream);
Which seems to be wrong. For reference, `man fgets.3p`
(manpages-posix-dev) shows:
char *fgets(char *restrict s, int n, FILE *restrict stream);
I believe `int size;` before `char s[restrict size]` is syntactically
and semantically wrong.
The same error also exists in `fgetc.3`, `getchar.3`, and `ungetc.3`.
Maybe something like this would be more apt?:
char *fgets(char s[restrict size], int size, FILE *restrict stream);
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.13+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8), LANGUAGE=en_IN:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages manpages-dev depends on:
ii manpages 6.16-1
manpages-dev recommends no packages.
Versions of packages manpages-dev suggests:
ii man-db [man-browser] 2.13.1-1
-- no debconf information