Rev 8827 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8827 | Rev 9808 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | int cmd_touch(char file[]) |
1 | int cmd_touch(char file[]) |
2 | { |
2 | { |
3 | kol_struct70 k70; |
3 | kol_struct70 k70; |
4 | char temp[FILENAME_MAX]; |
4 | char* temp = (char*) malloc(FILENAME_MAX); |
5 | unsigned result; |
5 | unsigned result; |
Line 6... | Line 6... | ||
6 | 6 | ||
7 | if (NULL == file || strlen(file) == 0) { |
7 | if (NULL == file || strlen(file) == 0) { |
8 | printf(CMD_TOUCH_USAGE); |
8 | printf(CMD_TOUCH_USAGE); |
Line 41... | Line 41... | ||
41 | //printf("try to touch [%s], fn70(%d)\n\r", temp, k70.p00); |
41 | //printf("try to touch [%s], fn70(%d)\n\r", temp, k70.p00); |
Line 42... | Line 42... | ||
42 | 42 | ||
Line -... | Line 43... | ||
- | 43 | result = kol_file_70(&k70); |
|
- | 44 | ||
43 | result = kol_file_70(&k70); |
45 | free(temp); |
44 | 46 | ||
45 | if (0 == result) |
47 | if (0 == result) |
46 | return TRUE; |
48 | return TRUE; |