#ifndef __LIB5_H__
#define __LIB5_H__

#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <unistd.h>

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_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