On Mon, Feb 13, 2012 at 3:18 PM, Albert Graef <Dr.Graef at t-online.de> wrote: > like wordexp() or just substitute getenv("HOME") for the tilde before > passing the path to opendir(). do NOT use wordexp if your code may run on any platform other than linux. it is unsafe.