C (35/178)

From:Oliver Roberts
Date:13 Jul 2000 at 10:44:18
Subject:Re: ExamineFH() Problems

On 13-Jul-00 01:19:23 BST, radiat-r aka Sascha Ploss wrote:

> Hi Nick,

>> I understand that the FileInfoBlock structure has to be longword aligned
>> and I think this is where my problem lies; however - i don't know how to

> file_info = (struct FileInfoBlock *)
> AllocMem(sizeof(struct FileInfoBlock),MEMF_CLEAR);
> if (file_info) {...} // you MUST check for success here!

As I said, AllocDosObject(DOS_FIB,NULL) should really be used instead of
AllocMem() in this case.



*Oliver Roberts* - software developer & web designer
http://www.oliver-roberts.co.uk/ - ICQ: 34640231
/oliver@futaura.co.uk/ | /oliver.roberts@iname.com/


Amiga F1GP Webring ==> http://www.nanunanu.org/~oliver/f1gpring/


------------------------------------------------------------------------
Wish you had something rad to add to your email?
We do at www.supersig.com.
http://click.egroups.com/1/6810/1/_/451227/_/963484039/
------------------------------------------------------------------------