TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: hugo landsman
from: James Blackwell
date: 1995-08-20 22:12:02
subject: I need dir.h for gcc/emx

hl> What's an ffblk? :-)  The dos header is meaningless to the
hl> unix model & os/2 environment emx addresses.  Use opendir(),
hl> or DosFindFirst() if you don't need an 32-bit dos or unix
hl> app, iso. _findfirst().  Don't forget to close it too, or
hl> you'll run out of find handles!


Yes! Someone familar with EMX!

I understand the generalities of what you are talking about. But could I
get some info off you like, what header to call, and what functions I
should be using instead? I removed some code to make it fit better in this
message, so if it doesn't work quite right, sorry. :( .Could I bug you for
just a touch of conversion. And if that wasn't enough, could I ask you to
mention what headers I have to include? Thank you vewy, vewy much!

Ok. here is a code snippet:
{
char ticklist[100][15];
int counter=0;
struct ffblk ffblk;
int done;
done = findfirst("*.tic",&ffblk,0);
while (!done)
	{
	counter++;
	strcpy(ticklist[counter],ffblk.ff_name);
	done = findnext(&ffblk);
	}
}

Regards,
James Blackwell

--- FMail/386 1.0g
* Origin: James Blackwell The Cool Point! (1:202/1710.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: 202/1710 1709 777 3615/50 396/1 270/101 105/103 42 712/515 711/808
@PATH: 711/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™.