Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: EricKane on March 15, 2007, 07:10:00 pm

Title: Question of function scanf()
Post by: EricKane on March 15, 2007, 07:10:00 pm
where can i find implementation code of function scanf()?
Title: Re: Question of function scanf()
Post by: stahta01 on March 15, 2007, 07:17:56 pm
Depends on the compiler and I have no idea where it is for any compiler.

Tim S
Title: Re: Question of function scanf()
Post by: EricKane on March 15, 2007, 07:41:08 pm
Sorry,
I'm using MinGW GCC Compiler,so where can i find it?
Title: Re: Question of function scanf()
Post by: TDragon on March 15, 2007, 07:43:17 pm
I'm using MinGW GCC Compiler,so where can i find it?
You can't; MinGW links the scanf() function from the MSVC runtime (msvcrt*.dll), for which the source is not available.
Title: Re: Question of function scanf()
Post by: Roman on March 15, 2007, 09:58:44 pm
Quote
You can't; MinGW links the scanf() function from the MSVC runtime (msvcrt*.dll), for which the source is not available.

You can't. But FYI&F: there are sources for some of microsoft crt routines in MSVCDIR\Vc7\crt\ or so (if you have msvc installed and "install crt sources" option enabled)
Interesting thing is "strlen.asm" - it works fine, but i couldn't understand it (may be because of mental forces degradation due to my university studies).
After that thing I strongly respect microsoft guys.