#include #include #include #include #include char machineused[64]; char userused[64]; int depthused; /* * translate mail address into an open file */ char* tryfile(char *machine, char *user, int ld) { static char file[128]; char *cp, *p; Biobuf *mf; sprint(file, "/lib/face/48x48x%d/.dict", 1< 1) depth = 1; fd = getfile(machine, user, depth); if (fd == 0) fd = getfile(machine, "unknown", depth); if (fd == 0) fd = getfile("", "unknown", depth); if (fd == 0) exits("not found"); print("%s %s %d %s\n", machineused, userused, depthused, fd); exits(""); }