0

TL;DR

Where can I find the source code for strcpy() of MinGW (libmsvcrt.a)

Background

For Ubuntu, I was able to find the source code for strcpy() in glibc.

For Window, I use MinGW for C/C++ development, which uses MSVCRT, Microsoft Visual C++ Runtime as a glib counterpart.

Inside libmsvcrt.a, it does have strcpy(), but no C implmenetion since it's already compiled.

I downloaded mingw-w64-v8.0.0.zip. While string.h is available, no strcpy.c is found.

WhaSukGO
  • 575
  • 7
  • 17
  • You kinda answered your own question. `libmsvcrt.a` is a DLL import library, so it uses the `strcpy` function of `msvcrt.dll`. – ssbssa Mar 20 '23 at 11:31

0 Answers0