mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
19 lines
339 B
C
19 lines
339 B
C
#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);
|
|
}
|
|
}
|