Usenet comp.sys.vms (1990-2004)
 help / color / mirror / Atom feed
* DEC C popen fn
@ 1998-02-16  5:00 Harminder Banwait
  1998-02-17  5:00 ` Stephan Wilms
  1998-02-17  5:00 ` Kaz Kylheku
  0 siblings, 2 replies; 3+ messages in thread
From: Harminder Banwait @ 1998-02-16  5:00 UTC (permalink / 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






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-02-17  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-16  5:00 DEC C popen fn Harminder Banwait
1998-02-17  5:00 ` Stephan Wilms
1998-02-17  5:00 ` Kaz Kylheku

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