This is from Ian Dickinson ftp.csv.warwick.ac.uk:/pub/usenet/inn/inndf.c