Author Topic: Question of function scanf()  (Read 4663 times)

Offline zealkane

  • Multiple posting newcomer
  • *
  • Posts: 29
Question of function scanf()
« on: March 15, 2007, 07:10:00 pm »
where can i find implementation code of function scanf()?
Zeal without knowledge is fire without light.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7197
    • My Best Post
Re: Question of function scanf()
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline zealkane

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Question of function scanf()
« Reply #2 on: March 15, 2007, 07:41:08 pm »
Sorry,
I'm using MinGW GCC Compiler,so where can i find it?
Zeal without knowledge is fire without light.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Question of function scanf()
« Reply #3 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.
« Last Edit: March 15, 2007, 07:50:40 pm by TDragon »
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline Roman

  • Multiple posting newcomer
  • *
  • Posts: 78
Re: Question of function scanf()
« Reply #4 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.
CB LSI (C::B as a Little Secret Initiative)