1 /* touch.c : Defines the entry point for the console application.*/
2 /* Copyright 2000, International Business Machines Corporation and others.
5 This software has been released under the terms of the IBM Public
6 License. For details, see the LICENSE file in the top-level source
7 directory or online at http://www.openafs.org/dl/license10.html
18 printf("touch filename/Wildcard \n");
22 int main(int argc, char* argv[])
27 struct _finddata_t finfo;
30 fs=_findfirst(argv[1],&finfo);
35 if ((finfo.attrib & ~_A_ARCH) != _A_NORMAL) continue;
36 fh=_open(finfo.name,_S_IWRITE|_O_BINARY|_S_IREAD|_O_RDWR);
37 pos=_lseek(fh,0l,SEEK_END);
41 } while (_findnext(fs,&finfo)==0);