Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!ut-sally!nather From: nather@ut-sally.UUCP (Ed Nather) Newsgroups: comp.sys.ibm.pc Subject: Re: TOUCH on IBM-PC? Message-ID: <9051@ut-sally.UUCP> Date: Fri, 18-Sep-87 17:39:41 EDT Article-I.D.: ut-sally.9051 Posted: Fri Sep 18 17:39:41 1987 Date-Received: Sun, 20-Sep-87 04:25:31 EDT References: <1334@obelix.liu.se> <1755@tekgen.TEK.COM> Organization: U. Texas CS Dept., Austin, Texas Lines: 20 Keywords: Nethack, NDMAKE, TOUCH Summary: Touch in C for IBM PC /* touch - set file modification time to current time */ #include main(argc, argv) int argc; char **argv; { register int i; for(i = 1; --argc > 0; i++) { if(utime(argv[i], NULL) < 0) perror(argv[i]); } } -- Ed Nather Astronomy Dept, U of Texas @ Austin {allegra,ihnp4}!{noao,ut-sally}!utastro!nather nather@astro.AS.UTEXAS.EDU