I originally started this thread because it was not working under Visual C++, and thought that perhaps it was just MS that did not comply with the C standard, but alas, the standard says no!:(
Type: Posts; User: wdicks
I originally started this thread because it was not working under Visual C++, and thought that perhaps it was just MS that did not comply with the C standard, but alas, the standard says no!:(
I was in contact with Dennis Ritchie of "Kernigan and Ritchie" fame, and he said he doesn't think it is in C99, and definitely wasn't in previous standards.:(
It is such a pity!:confused:
Yea, I've been on C++ since '94 and didn't know if C was updated to handle default values for function prototype parameters.
We're busy with a very intense project that is cramped into a very...
Then it is fine!
This is what I have in my header file:
/* sc.h */
sc_error_t DllDeclare SCSetUser_Privilege_IPSecAPIKey(
char *pchUserKey,
char *pchPrivilegeKey,
BOOL fSA = TRUE, :confused:
...
I tried it with Visual C++ 6, and it doesn't allow it. Is it actually in the ISO C standard?
Hi,
I would like to know if "C" allows one to put default values in function prototypes like in "C++?"
Here is an example:
int SetName( char *pchName, BOOL fNewName = TRUE ); :confused:
...