mirror of
https://github.com/troglobit/libite.git
synced 2026-10-02 05:42:49 +07:00
19 lines
235 B
C
19 lines
235 B
C
#include "check.h"
|
|
|
|
int main(void)
|
|
{
|
|
FILE *fp;
|
|
char *dir = "/tmp";
|
|
char *file = "__foo__";
|
|
|
|
fp = fopenf("w", "%s/%s", dir, file);
|
|
if (fp) {
|
|
fputs("foo", fp);
|
|
fclose(fp);
|
|
}
|
|
|
|
fail_unless(fexist("/tmp/__foo__"));
|
|
|
|
return 0;
|
|
}
|