pjb
10/10/2008 11:48:00 AM
"Default User" <defaultuserbr@yahoo.com> writes:
> Pascal J. Bourguignon wrote:
>
>> "A.Leopold" <andreas.leopold@himt.de> writes:
>>
>> > ;)
>> > ok, I asked, cause my compiler (VS05) is complaining about the use
>> > of sprintf ....
>>
>> I guess it's rather ::sprintf (with extern "C" { / #include <stdio.h>
>> / }).
>
> What would make you guess something like that?
First, AFAIK, C functions are in the "root" namespace; to avoid
refering a different object in the current namespace, it's advised (in
various style guides) to qualify C functions.
Then, using a function without declaring it would make a sane compiler
complain, so it's good practice to include some header declaring it
before using it.
--
__Pascal Bourguignon__