4 #define PI 3.141592653589793
11 //get size of terminal
15 p = popen("stty size", "r");
16 fscanf(p, "%d %d", &lines, &cols);
19 if ((ioctl(STDOUT_FILENO
, TIOCGWINSZ
, &ws
) == -1 &&
20 ioctl(STDERR_FILENO
, TIOCGWINSZ
, &ws
) == -1 &&
21 ioctl(STDIN_FILENO
, TIOCGWINSZ
, &ws
) == -1) ||
31 asprintf(&format
,"%%0.%dlf\r",cols
-2);
44 //return EXIT_SUCCESS;
This page took 0.433913 seconds and 4 git commands to generate.