man pages declarations
by marijan from LinuxQuestions.org on (#6H6YC)
Code:void qsort(void base[.size * .nmemb], size_t nmemb, size_t size, int (*compar)(const void [.size], const void [.size]));
void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));The first line is delaclaration of qsort stdlib function in Debian.
The second line is from NetBSD. NetBSD looks like an old school.
I didn't notice when linux started with new declaration.
But I don't know why it is so? And where it is explained?
What are dots in .size and .nmemb?
void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));The first line is delaclaration of qsort stdlib function in Debian.
The second line is from NetBSD. NetBSD looks like an old school.
I didn't notice when linux started with new declaration.
But I don't know why it is so? And where it is explained?
What are dots in .size and .nmemb?