Hi. I was browsing through the php source code, and I found the following function prototype.
PHPAPI char *php_strtoupper(char *s, size_t len);
I saw this kind of declaration in many source codes, but what I don`t understand is, what is the keyword before the return type.
Until now if I declared a function, it looked like this:
int something() or char *something().
Can somebody tell me, what the keyword before the return type actually does? Is it some kind of label? Or even if it would be some macro defined elsewhere, how it changes the return value of the function? And if you can give an example how to create a function like this, I would really appreciate.
P.s.: Evidently I`m not interested in what the PHPAPI keyword means in the php source code, just in general, the first expression in these kind of declarations.
Thank you.