add Bresenham algorythms

This commit is contained in:
2023-03-29 14:38:38 +03:00
parent 349d2616e3
commit e51986b490
8 changed files with 287 additions and 20 deletions

View File

@@ -110,7 +110,10 @@ static ilInputType imtype(FILE *f){
ilInputType ilchkinput(const char *name){
DBG("input name: %s", name);
struct stat fd_stat;
stat(name, &fd_stat);
if(stat(name, &fd_stat)){
WARN("Can't stat() %s", name);
return T_WRONG;
}
if(S_ISDIR(fd_stat.st_mode)){
DBG("%s is a directory", name);
DIR *d = opendir(name);