TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Keith Fowler
from: Paul Edwards
date: 1996-03-28 21:36:04
subject: Structures

KF>     Hello everyone, could some body please help me.. I'm trying to write a 
KF> structure to a file, but i can't get it.. i've tried commands like WRITE, 
KF> FWRITE, FPUTS, PUTC , PUTS etc etc.. but can't get it to go..  I think my 
KF> structures right, here it is:

You want fwrite, NOT FWRITE.

KF> typedef unsigned byte char;

You want unsigned char byte.

Actually, you just want char.  What is the reason you are making your
char's unsigned?

KF>     STRUCT names {

You want struct, NOT STRUCT.

KF>       byte firstname;
KF>       byte lastname;
KF>       };
KF> STRUCT names writenames;

KF>      Will that work?? :-).. any help would be appreciated.. thanks..Cya!

None of this should have compiled even.  BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

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™.