make/test_mkstemp.c

Wed, 31 Dec 2025 15:25:30 +0100

author
Mike Becker <universe@uap-core.de>
date
Wed, 31 Dec 2025 15:25:30 +0100
changeset 1693
c2d05cf1a062
parent 1661
a389bf17eaaa
permissions
-rw-r--r--

fix that Microsoft's _strnicmp crashes when a string is NULL although count == 0

#include <stdlib.h>

static void test_mkstemp() {
    char tpl[] = "/tmp/testXXXXXX";
    int fd = mkstemp(tpl);
    // never called, no need to close fd
}

int main() {
    return 0;
}

mercurial