News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Question of function scanf()

Started by EricKane, March 15, 2007, 07:10:00 PM

Previous topic - Next topic

EricKane

where can i find implementation code of function scanf()?

stahta01

Depends on the compiler and I have no idea where it is for any compiler.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

EricKane

Sorry,
I'm using MinGW GCC Compiler,so where can i find it?

TDragon

#3
Quote from: Kane.zZ on March 15, 2007, 07:41:08 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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Roman

QuoteYou 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.
CB LSI (C::B as a Little Secret Initiative)