/* touch.c: Update a file's time stamp */

#include <stdio.h>

void touch(char *fname)
{
    FILE *f = fopen(fname,"r+b");
    if (f != NULL)
    {
        char c = getc(f);
        rewind(f);
        putc(c,f);
    }
    else
        fopen(fname,"wb");
            
    fclose(f);
}
