From: utzoo!decvax!harpo!floyd!vax135!ariel!orion!lime!we13!otuxa!ll1!sb1!burl!rcj Newsgroups: net.unix-wizards Title: re: dir.h Article-I.D.: burl.77 Posted: Tue Mar 29 08:15:50 1983 Received: Wed Mar 30 02:07:45 1983 Funny this should come up, I ran into the dir.h problem just yesterday. I solved the problem by doing a read of (sizeof(dirbuf) - 1) bytes (dirbuf being my directory structure) instead of a read of sizeof(dirbuf) bytes. This gave the required null, but also would not distinguish filenames that were non-unique to 13 characters. If anyone has any brilliant solutions other than a mod to dir.h, I would like to hear them. Thanks, The MAD Programmer alias: Curtis Jackson ...!floyd!burl!rcj ...!sb1!burl!rcj ...!mhuxv!burl!rcj