How to touch file in C

Please, does anybody know how to touch file (i.e. to change
its modification and/or accessed time to wished value) from
C code ? (it’s surely possible, because the touch utility
can do it.) Thanks,

Andy

Look at the utime() function.

-Warren



“Andrej Lucny” <andy@nod10.mstep> wrote in message
news:91nhg7$imt$1@charon.mstep-hdo.sk

Please, does anybody know how to touch file (i.e. to change
its modification and/or accessed time to wished value) from
C code ? (it’s surely possible, because the touch utility
can do it.) Thanks,

Andy