19 lines
261 B
C
19 lines
261 B
C
#include "func.h"
|
|
|
|
void clear(void){
|
|
printf("\033[H\033[J");
|
|
}
|
|
|
|
|
|
int flush(void){
|
|
int c;
|
|
while ((c = getchar()) != '\n')
|
|
if (c<32 && c!='\t') return 1;
|
|
return 0;
|
|
}
|
|
|
|
int end(int c){
|
|
if (c<32 && c!= '\n' && c!='\t') return 1;
|
|
return 0;
|
|
}
|