C 要将wsprintf与MinGW一起使用,必须包含哪些标题
我似乎能够用C 要将wsprintf与MinGW一起使用,必须包含哪些标题,c,include,mingw,C,Include,Mingw,我似乎能够用gcc编译调用wsprintf的代码,如果我有这些包含(按此顺序): #包括 #包括 #包括 但我觉得可能有一些“更干净”的方法来做到这一点。可能只包含一个标题。我是通过搜索头文件中缺少的符号,然后一个接一个地包含头文件来得到这个列表的。你是指标准函数swprintf?在这种情况下,您应该包括wchar.h您是指标准函数swprintf?在这种情况下,您应该包括wchar.h您的意思是swprintf() C99标准中描述了swprintf()。您需要 > WSPLTFTF
gcc
编译调用wsprintf
的代码,如果我有这些包含(按此顺序):
#包括
#包括
#包括
但我觉得可能有一些“更干净”的方法来做到这一点。可能只包含一个标题。我是通过搜索头文件中缺少的符号,然后一个接一个地包含头文件来得到这个列表的。你是指标准函数
swprintf
?在这种情况下,您应该包括wchar.h
您是指标准函数swprintf
?在这种情况下,您应该包括wchar.h
您的意思是swprintf()
C99标准中描述了swprintf()。您需要
<> > <代码> WSPLTFTF >与<代码> SWPrTNTF相同。您可能需要考虑使用标准函数。
7.24.2.3 The swprintf function
Synopsis
[#1]
#include <wchar.h>
int swprintf(wchar_t * restrict s,
size_t n,
const wchar_t * restrict format, ...);
Description
[#2] The swprintf function is equivalent to fwprintf, except
that the argument s specifies an array of wide characters
into which the generated output is to be written, rather
than written to a stream. No more than n wide characters
are written, including a terminating null wide character,
which is always added (unless n is zero).
7.24.2.3 swprintf功能
提要
[#1]
#包括
int swprintf(wchar_*s,
尺寸,
常量wchar_t*限制格式,…);
描述
[#2]swprintf函数与fwprintf函数等效,除了
参数s指定宽字符数组
将生成的输出写入其中,而不是
而不是写在溪流中。不超过n个宽字符
写入,包括终止空宽字符,
总是加上(除非n为零)。
你的意思是swprintf()
C99标准中描述了swprintf()。您需要
<> > <代码> WSPLTFTF >与<代码> SWPrTNTF相同。您可能需要考虑使用标准函数。
7.24.2.3 The swprintf function
Synopsis
[#1]
#include <wchar.h>
int swprintf(wchar_t * restrict s,
size_t n,
const wchar_t * restrict format, ...);
Description
[#2] The swprintf function is equivalent to fwprintf, except
that the argument s specifies an array of wide characters
into which the generated output is to be written, rather
than written to a stream. No more than n wide characters
are written, including a terminating null wide character,
which is always added (unless n is zero).
7.24.2.3 swprintf功能
提要
[#1]
#包括
int swprintf(wchar_*s,
尺寸,
常量wchar_t*限制格式,…);
描述
[#2]swprintf函数与fwprintf函数等效,除了
参数s指定宽字符数组
将生成的输出写入其中,而不是
而不是写在溪流中。不超过n个宽字符
写入,包括终止空宽字符,
总是加上(除非n为零)。
否,
wsprintf
。我曾经尝试过wchar.h
,但似乎不起作用。不,wsprintf
。我曾经尝试过wchar.h
,但似乎不起作用。