Looking for C source code for snprintf()

前端 未结 3 1021
耶瑟儿~
耶瑟儿~ 2021-01-19 16:08

I need to port snprintf() to another platform that does not fully support GLibC.

I am looking for the underlying declaration in the Glibc 2.14 source code. I follow

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-19 16:56

    The source code of the GNU C library (glibc) is hosted on sourceware.org.

    Here is a link to the implementation of vfprintf(), which is called by snprintf(): https://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-common/vfprintf.c

提交回复
热议问题