Package: manpages-dev
Version: 6.18-1
Severity: normal

Dear Maintainer,

manpage for snprintf(3) indicates:

SYNOPSIS
       #include <stdio.h>

       int snprintf(size_t size;
                   char str[restrict size], size_t size,
                   const char *restrict format, ...);
       int vsnprintf(size_t size;
                   char str[restrict size], size_t size,
                   const char *restrict format, va_list ap);

The size parameter is duplicated, for both snprintf() and vsnprintf().
Also note the ";" at the end of the first "size" parameter. This is
nonsense in a C function call.

The correct synopsis should be:

       int snprintf(char str[restrict size], size_t size,
                   const char *restrict format, ...);
       int vsnprintf(char str[restrict size], size_t size,
                   const char *restrict format, va_list ap);

It looks like the generation of /usr/share/man/man3/snprintf.3.gz is
bogus.

It contains:
.SH SYNOPSIS
.nf
.B #include <stdio.h>
.P
.BR "int snprintf(" "size_t size;"
.BI "            char " str "[restrict " size "], size_t " size ,
.BI "            const char *restrict " format ", ...);"
.BR "int vsnprintf(" "size_t size;"
.BI "            char " str "[restrict " size "], size_t " size ,
.BI "            const char *restrict " format ", va_list " ap );
.fi


-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.4+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
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.18-1

manpages-dev recommends no packages.

Versions of packages manpages-dev suggests:
ii  man-db [man-browser]  2.13.1-1

-- no debconf information

Reply via email to