make/test_mkstemp.c

Thu, 25 Dec 2025 11:10:13 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 25 Dec 2025 11:10:13 +0100
changeset 1667
608cc0b25352
parent 1661
a389bf17eaaa
permissions
-rw-r--r--

changes cx_strcat() family of function to return an int and removes two unnecessary variants

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