TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Frank Adam
date: 1996-10-17 12:24:00
subject: Fat

G'Day Paul,
 
-=> Quoting Paul Edwards to Frank Adam <=-
 FA> Hi Paul, why not write your own ??

 PE> Because I'm busy writing other things of my own, mostly 
 PE> that don't involve machine-specific code!  :-)
Oh, alright then, but someone has to do it. :-) 

 FA> If i get the time i'll finish and add the restore and boot read to it, 
 FA> unless you want to beat me to it. ;-)
 PE> No, I'll beat you to getting Tobruk working on the Amiga 
 PE> though (with messagebase capabilities).
Most likely:) 
I don't even know what Tobruk does, is, and why it's called Tobruk ??
Didn't we lose a battle there once ? :)
                  
 PE> A simple "Released to the Public Domain" is all you need, 
Yes boss, i'll do so in future, it just seems a bit strange for a simple
thing like that.

 PE> Borland C++  Version 3.1 Copyright (c) 1992 Borland International
 PE> fat.c:
 PE> Warning fat.c 84: Suspicious pointer conversion in function GetDpb
Compile it in large model for now,i did change the code here to
use far variables and works fine in small, but i won't post it yet, and
may revert to enforce large model anyway.

 PE> Error fat.c 111: Expression syntax in function GetFat
Stupid C, complains about "i" being declared within the for loop. 
Move the declaration to the top of the function.

 PE> Error fat.c 111: Undefined symbol 'i' in function GetFat
 PE> Error fat.c 111: Statement missing ; in function GetFat
 PE> Warning fat.c 127: 'p' is assigned a value that is never 
 PE> used in function GetFat
 PE> Warning fat.c 127: 'j' is declared but never used in function GetFat
 PE> Warning fat.c 127: 'startsector' is assigned a value that 
 PE> is never used in function GetFat
 PE> Warning fat.c 127: Parameter 'drive' is never used in function GetFat
These just followed on from line 111.

 PE> Warning fat.c 186: Call to function 'ShowMedia' with no 
 PE> prototype in function main
I really hate that,i should've declared it "void ShowMedia( void )" 
I always thought void func() would assume void for parameters, but it 
keeps happening of late so i guess not.


 PE> What did I do wrong?  BFN.  Paul.
As a *.cpp file, none of these would have come up, since i knew i was 
using non standard code i didn't bother changing the extension to .c.
I've converted it to .C now.

I won't re-post it now, having added a straightish DOS call instead of 
absread() and a viewer function,boot read, and god knows what, i'll need 
to make sure there are no bugs hiding.
 
I will repost it on the weekend or early next week as a reader/saver 
only. The restore functions i'll have to test very well, and certain 
safeguards would have to be implemented against improper use i guess.
Then again on this one there *will* be a disclaimer ;-)
Maybe even a CMOS restore routine later. NOT!  
well,umm...we'll see.                                                         

  L8r Frank (fadam{at}ozemail.com.au).
   
                                       

--- Gash
* Origin: The Software Parlour (3:635/544)
SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 727 711/409 410 413 430
SEEN-BY: 711/808 809 932 934 712/515 713/888 714/906 800/1
@PATH: 635/544 50/99 711/808 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™.