#ifndef __LIB6_H__ #define __LIB6_H__ #include #include #include #include #include #include struct xy { int x, y; }; void stdout_write(char *s); void stdout_flush(void); void show_str(char *s); void show_nl(void); void show_spc(int n); void show_v(int v, int by_asc); void show_f(double v); void show_int(int v); void show_xy(struct xy *a); void show_esc(void); void cls(void); void locate(int x, int y); void show_xy_str(int x, int y, char *s); double sys_sec(void); void sys_sleep(double sec); int opt_idx(char *key, int ac, char **av); char *opt_str(char *key, int ac, char **av, char *def_ret); int opt_int(char *key, int ac, char **av, int def_ret); #endif