make/test_mkstemp.c

Sun, 28 Dec 2025 14:10:14 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 28 Dec 2025 14:10:14 +0100
changeset 1672
94360453bce4
parent 1661
a389bf17eaaa
permissions
-rw-r--r--

partially revert the changes to cx_strcat() and add CX_NULLSTR macro

relates to #792

#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