28 lines
474 B
C
28 lines
474 B
C
// clang -Wall -o demo demo.c mandelbrot.o
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int output(int x) {
|
|
static char chars[] = " .,-:;i+hHM$*#@ ";
|
|
if(x < 0) {
|
|
putchar('\n');
|
|
} else {
|
|
if(x < strlen(chars)) {
|
|
// putchar(chars[x]);
|
|
printf("%d\n", x);
|
|
} else {
|
|
// printf("ERROR\n");
|
|
printf("%d\n", x);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
extern int run();
|
|
|
|
int main() {
|
|
run();
|
|
return 0;
|
|
}
|