Skip to content

MDK 5.38发布后,AC6的_sys_tmpnam函数由int变为void #6642

Description

@wdfk-prog

_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*/);

是否需要更改?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions