ref: a24a074bc3809078435fbcb45250967ec9a5891e
dir: /venti/utils.c/
#include "platform.h" #include "dat.h" #include "fns.h" int nameok(char *name) { if(name == NULL || strlen(name) >= ANameSize) return 0; for(size_t i = 0; i < strlen(name); i += 1) if(name[i] < 0x20 || name[i] >= 0x80) return 0; return 1; }