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

Annotation of mandoc/test-mkdtemp.c, Revision 1.2

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

CVSweb