Sorry, I fogot to tell you where it is...

http://www.ccsnet.ne.jp/~ocean/23007/dir.c

Regards,
Yamamoto