this is a pretty basic error..
when you do a static definition of the function "rename", you are creating problems because the prototype from the header stdio.h says the parameters are const char* and not char *(that you have written) ..and you should also
change it to const char* for the sake of posterity...(you are not going to modify the incoming parameters..right???)...
this, while would remove the error, would still give you a warning for static defintion and extern declaration..not quite a mix....
solution : either remove the static itself..would remove all warnings
as for the __THROW__ part in the prototype in the header..
this is for use in C++, where this macro expands to throw(), for throwing exceptions
A SUGGESTION: if you are the allowed to give your own function names, then it would be better if you did not use the standard function names..it creates more confusion than easing things out
Last edited by shishir; 08-07-2003 at 03:25 PM.
|