From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,cbf5006e2b2c4a61,start X-Google-Attributes: gid1014db,public X-Google-Thread: fc7fa,cbf5006e2b2c4a61,start X-Google-Attributes: gidfc7fa,public From: "Harminder Banwait" Subject: DEC C popen fn Date: 1998/02/16 Message-ID: <6c9pqs$pun@romeo.logica.co.uk>#1/1 X-Deja-AN: 325582987 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Logica UK Limited Newsgroups: comp.lang.c,comp.sys.vms Hi, I'm trying to make use of the popen function that is now implemented in the latest version of OpenVMS, but having no joy - it always returns a NULL pointer as the file pointer. (errno stays at 0). Any suggestions as to why this might be (permission problem ??) eg : FILE *file_ptr; file_ptr = popen("dir *.c", "r"); I'm doing this as I want to read a directory on the machine into an array of filenames. If someone can suggest another (better ?) way of doing this then I'd be very gratefully Any replies CC directly if possible - Thanks Richard