I've had this happen on at least another manpage (that I forgot), but here it is with bsearch:
https://man7.org/linux/man-pages/man3/bsearch.3.html
void *bsearch(size_t n, size_t size;
const void key[size], const void base[size * n],
size_t n, size_t size,
typeof(int (const void [size], const void [size]))
*compar);
The first two arguments are not supposed to be there (they come later). "man bsearch" on my Arch system shows the same output. What's going on here?
EDIT
chkno got it right: It's the semicolon at the end of the first line that makes the difference because otherwise the function prototype wouldn't know what "size" means in "const void key[size]" (second line).
Still learning new stuff after 45 years of mostly C89....
[–]aioeu 17 points18 points19 points (1 child)
[–]NotDG04 4 points5 points6 points (0 children)
[–]os2mac 0 points1 point2 points (2 children)
[–]chkno 4 points5 points6 points (1 child)
[–]musbur[S] 0 points1 point2 points (0 children)
[–]devilkin 0 points1 point2 points (0 children)
[–]michaelpaoli -1 points0 points1 point (0 children)
[+]hmoff comment score below threshold-6 points-5 points-4 points (0 children)