TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: James Blackwell
from: hugo landsman
date: 1995-08-23 13:16:04
subject: I need dir.h for gcc/emx

hi James,

 JB> I understand the generalities of what you are talking about. But could
 JB> I get some info off you like, what header to call, and what functions
 JB> I should be using instead?

You haven't told us yet what you want to make.  For a pure OS/2 program
(compile with -Zomf -Zsys), you can use the system calls (DosFindFirst()
ea.) from , for something more portable (recompiles in other
POSIX environments), use opendir() ea. from .  For easiest
use, have a look at the EMX-specific _fnexplode()/_fnexplodefree()
functions from .  Look it up in doc\libref.doc (or
book\libref.inf).

 JB> Ok. here is a code snippet:

char**ticklist=_fnexplode("*.tic");

Don't forget to free the list when you're done with it.

regards,
         hugo
* Origin: huug{at}telebyte.nl (2:283/608.5)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 283/608 6 1 512 280/801 24/24 396/1 270/101 105/103 42 712/515
@PATH: 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.