Changeset 41 in libcf for trunk/test/file.c


Ignore:
Timestamp:
02/07/13 10:18:02 (11 years ago)
Author:
cheese
Message:

#1 add function to make directory and update file test code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/file.c

    r35 r41  
    99int main (void) {
    1010    int fd = 0;
     11    char *dir1 = "./dir1/test";
     12    char *dir2 = "dir2/test";
    1113    char *name = "file.txt";
    1214    char buffer[128] = {0x00,};
     15
     16    if (CF_File_MakeDirectory (dir1)) {
     17        // error
     18    }
     19
     20    if (CF_File_MakeDirectory (dir2)) {
     21        // error
     22    }
    1323
    1424    fd = CF_File_Create (name);
Note: See TracChangeset for help on using the changeset viewer.