× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



>From Info Center:

Return Value
value
opendir() was successful. The value returned is a pointer to a DIR, 
representing an open directory stream. This DIR describes the directory and is 
used in subsequent operations on the directory using the readdir(), 
rewinddir(), and closedir() functions.
NULL pointer
opendir() was not successful. The errno global variable is set to indicate the 
error.

It is a pointer that you would use for the other calls.

http://publib.boulder.ibm.com/pubs/html/as400/v5r1/ic2924/index.htm?info/apis/unix2.htm


Regards,

Jim Langston

-----Original Message-----
From: James Rich [mailto:james@eaerich.com]

I search ed the archives for references to using opendir() and found this:

http://archive.midrange.com/rpg400-l/200010/msg00668.html

But unfortunately the code doesn't show how to define dh (what opendir
return).  opendir() returns a pointer to a DIR.  DIR is a macro for
something, anyone know what?  How do I properly code opendir() in RPG?

James Rich


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.