Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
23
Добавлен:
01.05.2014
Размер:
403 б
Скачать
	/* Emulate the UNIX touch program */

	#include <iostream.h>
	#include <stdio.h>
	#include <sys/types.h>
	#include <utime.h>
	#include <time.h>



	int main (int argc, char* argv[])

	{

		struct utimbuf			times;

		times.actime = times.modtime = time(0);

		while (--argc > 0) 				/* touch each named file */

			if (utime (*++argv, &times)) perror("utime");

		return 0;

	}
Соседние файлы в папке ch7