Thanks Elvis. You prevented me from starting to use API-s (QHFOPNDR, QHFRDDR). 
Their names even cannot be pronounced properly by a person having one tongue.

Your way is significantly easier and exactly does the job. I do not care too 
much that it is not possible to use name wildcards - it is not a problem in my 
case.
And thanks for a proposal to code wrapper :-)
My problem was very practical and now its solved!
Thanks.

Jevgeni.

> -----Original Message-----
> From: Elvis Budimlic [mailto:ebudimlic@xxxxxxxxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, May 02, 2006 8:53 PM
> To: 'C programming iSeries / AS400'
> Subject: Re: [C400-L] _dos_findfirst and _dos_findnext analog 
> on AS/400
> 
> 
> Boy, it's been a while since I've used those handy functions on DOS :)
> I don't know of direct equivalent on System i, but being that 
> list is kind
> of quiet today...
> Closest fit is probably opendir(), readdir(), closedir().  
> You might also
> need to use stat() or fstat() to get additional information 
> on the files.
> You can probably code up wrapper functions that would fully 
> imitate DOS
> functions, but I wouldn't do it unless you're porting an existing
> application.
> 
> There is a simple example at the bottom of this link:
> http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/ap
> is/opendir.htm
> 
> Elvis
> 
> -----Original Message-----
> Subject: [C400-L] _dos_findfirst and _dos_findnext analog on AS/400
> 
> I remember, there was a fine set of C functions on PC:
> _dos_findfirst and _dos_findnext. Names slightly differ from 
> compiler to
> compiler.
> 
> With their help it was very easy to process set of files with names,
> matching certain criteria.
> 
> Is there anything similar in ILE/C to process files, that 
> reside in IFS
> (QIBM)?
> 
> Stupid ideas come to mind, like sending directory listing to file....
> 
> Any advise will be highly appreciated,
> 
> Jevgeni Astanovski
> 
> 
> 
> -- 
> This is the C programming iSeries / AS400 (C400-L) mailing list
> To post a message email: C400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/c400-l
> or email: C400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
> 
> 


This thread ...


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

This mailing list archive is Copyright 1997-2019 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].