Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.35 kb
#include <sys/types.h>
#include <sys/time.h>
#include "scan.h"
#include "exit.h"
char *fn;
char *ustr;
unsigned long u;
time_t ut[2];
int main(int argc,char **argv)
{
fn = argv[1];
if (!fn) _exit(100);
ustr = argv[2];
if (!ustr) _exit(100);
scan_ulong(ustr,&u);
ut[0] = ut[1] = u;
if (utime(fn,ut) == -1) _exit(111);
_exit(0);
}
Jump to Line
Something went wrong with that request. Please try again.