TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: All
from: Paul Wankadia
date: 1996-10-19 20:41:12
subject: Writing structs

Hey, everyone -- how do I write a struct to a stream?  E.g. if I had a struct
like this :

typedef struct Block1024 {
     unsigned char Packet_no;
     unsigned char Data[1024];
     unsigned long CRC;
};

and then went

Block1024 Packet;

(to create a struct called Packet, of typedef struct Block1024), how would I
then write it to a stream?  Say, to the screen, to disk or to a COM port?

Chow.

Junyer Hakker.

--- PPoint 2.00
* Origin: Junyer's Workshop (3:640/772.3)
SEEN-BY: 633/267 270
@PATH: 640/772 531 201 820 711/409 808 50/99 635/728 633/267

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