在AppDelegate.cpp最后加上代码
extern "C"{
size_t fwrite$UNIX2003( const void *a, size_t b, size_t c, FILE *d )
{
return fwrite(a, b, c, d);
}
char* strerror$UNIX2003( int errnum )
{
return strerror(errnum);
}
}
在本教程中,我们将指导您如何在AppDelegate.cpp文件中添加两个关键的UNIX2003函数,包括如何实现size_tfwrite和strerror。这些函数对于理解C语言在iOS应用开发中的使用至关重要。
在AppDelegate.cpp最后加上代码
extern "C"{
size_t fwrite$UNIX2003( const void *a, size_t b, size_t c, FILE *d )
{
return fwrite(a, b, c, d);
}
char* strerror$UNIX2003( int errnum )
{
return strerror(errnum);
}
}
524

被折叠的 条评论
为什么被折叠?