Usenet comp.sys.vms (1990-2004)
 help / color / mirror / Atom feed
From: "Harminder Banwait" <banwaith@logica.com>
Subject: DEC C popen fn
Date: 1998/02/16	[thread overview]
Message-ID: <6c9pqs$pun@romeo.logica.co.uk> (raw)


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






             reply	other threads:[~1998-02-16  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-16  5:00 Harminder Banwait [this message]
1998-02-17  5:00 ` DEC C popen fn Kaz Kylheku
1998-02-17  5:00 ` Stephan Wilms
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox