![]() |
Help in understanding small code for FreeBSD implementation of the C library
Hello guys, here is the code in reference:
Code:
/* sys/cdef.h */ 1.> why is there space between div and __P in Code:
div_t div __P((int, int));Code:
__P((int,int))2.> what is #define doing, i know these are preprocessor directives and i have seen the common implementations but i don't understand this. Thanks |
Re: Help in understanding small code for FreeBSD implementation of the C library
Thanks Guys but i got it. See what the code
Code:
div_t div __P((int, int));Code:
div_t div ()Code:
div_t div (int,int)A good way for making variable argument functions. Good day |
Re: Help in understanding small code for FreeBSD implementation of the C library
@Everyone: I would like to point out that when i said "I got it" in the above reply, i didn't mean that i solved it myself but what i meant was that i understood it, from a reply on another forum and so i have posted it here so that others who read it can benefit from the reply.
Thanls |
| All times are GMT +5.5. The time now is 13:35. |