_sys_tmpnam函数
/**
* used by tmpnam() or tmpfile()
*/
int _sys_tmpnam(char *name, int fileno, unsigned maxlength)
{
rt_snprintf(name, maxlength, "tem%03d", fileno);
return 1;
}
MDK5.8 AC6声明函数
/*
* Legacy variant of _sys_tmpnam2, which returns void and has no way
* to report failure. If you implement this, the library will provide
* a _sys_tmpnam2 wrapper that calls it.
*/
extern void _sys_tmpnam(char * /*name*/, int /*sig*/, unsigned /*maxlen*/);
是否需要更改?
_sys_tmpnam函数
MDK5.8 AC6声明函数
是否需要更改?