blob: 45c0a8354a6af8128e3b4137e6b041b3358789b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <unistd.h>
int main(void)
{
const char test_string[] = "Robin\nloves\nBatman\n";
for (size_t i = 0; test_string[i]; i++)
{
usleep(100000); // wait a tenth of a second
putchar(test_string[i]);
}
}
|