none
Where can I find the Microsoft C library function definitions (i.e. code)?

    Question

  • In order to understand the detailed internal implementations of pointers, etc. I'd like to inspect the library functions of Microsoft C code; the "string.c" code for example (not the "string.h" header file).

    Does anybody know where to find / download these code files?

    One little code example might be the "_strlen" function. It must be something like below:

    size_t _strlen(const char *src) {

    char *sTmp = (char *)src;

    while (*sTmp++);

    return (sTmp - src - 1);

    }




    • Edited by merkez3110 Wednesday, January 04, 2017 9:10 AM
    Wednesday, January 04, 2017 9:09 AM

Answers

  • They should be in the Visual Studio installation directory, in VC\crt\src
    • Marked as answer by merkez3110 Wednesday, January 04, 2017 9:56 AM
    Wednesday, January 04, 2017 9:48 AM

All replies