DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Just like all other files in FOSS projects, man pages are stored in publicly available version control systems where you can see change history for a file and, hopefully, comments giving reasons for changes. All you have to do is use your google-fu to locate it.
Just like all other files in FOSS projects, man pages are stored in publicly available version control systems where you can see change history for a file and, hopefully, comments giving reasons for changes. All you have to do is use your google-fu to locate it.
In other words, both of you have no slightest idea.
mam man is a universal poor ignorant answer, as well as whatever-fu. Thanks.
Use VLA syntax also for void *, even if it's a bit more weird.
Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2611.htm>
Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: JeanHeyd Meneide <wg14@soasis.org>
Cc: Martin Uecker <uecker@tugraz.at>
Cc: <gcc@gcc.gnu.org>
Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
About the VLA syntax in the https link above:
Quote:
Additional Principle for C23
At the WG 14 meeting in London, England, in April, 2016, the previous principles were reviewed, and the following was added:
15. Application Programming Interfaces (APIs) should be self-documenting when possible. In particular, the order of parameters in function declarations should be arranged such that the size of an array appears before the array. The purpose is to allow Variable-Length Array (VLA) notation to be used. This not only makes the code's purpose clearer to human readers, but also makes static analysis easier. Any new APIs added to the Standard should take this into consideration.
Use VLA syntax also for void *, even if it's a bit more weird.
Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2611.htm>
Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: JeanHeyd Meneide <wg14@soasis.org>
Cc: Martin Uecker <uecker@tugraz.at>
Cc: <gcc@gcc.gnu.org>
Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.