mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
20 lines
365 B
C
20 lines
365 B
C
#define _XOPEN_SOURCE 700
|
|
#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
unsigned long i = 0, max;
|
|
if (argc > 1) {
|
|
max = strtoul(argv[1], NULL, 10);
|
|
} else {
|
|
max = ULONG_MAX;
|
|
}
|
|
while (i < max) {
|
|
printf("%lu\n", i);
|
|
i++;
|
|
sleep(1);
|
|
}
|
|
}
|