level 1
爱Daydream110
楼主
使用平台:win10,codeblocks的编译器是最新的MinGW套件,另外软件设置里设置了C++11和C11支持。
问题描述:无法使用可选的字符串函数,如strnlen_s(), strncpy_s(), strcat_s()等等
求助问题:如何使Codeblocks支持这些可选的字符串函数?
书中检测C编译器是否支持可选的字符串函数的代码如下:
#include <stdio.h>
int main(void)
{
#if defined __STDC_LIB_EXT1__
printf("Optional functions are defined.\n");
#else
printf("Optional functions are not defined.\n");
#endif
return 0;
}
运行代码后,显示不支持。
2017年08月11日 00点08分
1
问题描述:无法使用可选的字符串函数,如strnlen_s(), strncpy_s(), strcat_s()等等
求助问题:如何使Codeblocks支持这些可选的字符串函数?
书中检测C编译器是否支持可选的字符串函数的代码如下:
#include <stdio.h>
int main(void)
{
#if defined __STDC_LIB_EXT1__
printf("Optional functions are defined.\n");
#else
printf("Optional functions are not defined.\n");
#endif
return 0;
}
运行代码后,显示不支持。