Ticket #2445: idelay.c

File idelay.c, 113 bytes (added by Max-P, 3 years ago)

The idelay.c program that waits 10 seconds before dropping all it input, simulating a network connection delay.

Line 
1#include <stdio.h>
2#include <time.h>
3
4int main(void) {
5        sleep(10);
6       
7        while(1) {
8                getchar();
9        }
10       
11        return 0;
12}
13