akaros/tests/busywriter.c
<<
>>
Prefs
   1#include <stdio.h>
   2#include <stdlib.h>
   3
   4int main(int argc, char **argv)
   5{
   6        int outer, inner, i, j;
   7
   8        if (argc != 3) {
   9                fprintf(stderr, "usage: %s outer inner\n", argv[0]);
  10                return 1;
  11        }
  12
  13        outer = atoi(argv[1]);
  14        inner = atoi(argv[2]);
  15
  16        for (i = 0; i < outer; i++) {
  17                for (j = 0; j < inner; j++)
  18                        printf("%c", 'x');
  19                fflush(stdout);
  20        }
  21        return 0;
  22}
  23