[BACK]Return to test-mkstemps.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/test-mkstemps.c, Revision 1.1

1.1     ! schwarze    1: #include <stdlib.h>
        !             2: #include <unistd.h>
        !             3:
        !             4: int
        !             5: main(void)
        !             6: {
        !             7:        char    filename[] = "/tmp/temp.XXXXXX.suffix";
        !             8:
        !             9:        if (mkstemps(filename, 7) == -1)
        !            10:                return 1;
        !            11:        return unlink(filename) == -1;
        !            12: }

CVSweb