| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | main.c |
#include
#include "error.h"
#include "pkt.h"
static void func0(void);
int main(void)
{
errorDefaults();
errorInit();
if (ALLOK)
{
func0();
}
errorTerm();
return (0);
}
static void func0(void)
{
PMSG *pmsg;
PKT pkt;
pktDefaults(&pkt);
pktInit(&pkt);
if (ALLOK)
{
pktSetFile(&pkt, "MEDIUM.PKT");
if (ALLOK)
{
pmsg = pktFirstMsg(&pkt);
while (pmsg != NULL)
{
printf("From is %s\n", pmsg->from);
printf("To is %s\n", pmsg->to);
printf("Subject is %s\n", pmsg->subject);
printf("Date is %s\n", pmsg->date);
printf("Area is %s\n", pmsg->area);
pmsg = pktNextMsg(&pkt);
}
pktFinFile(&pkt);
}
pktTerm(&pkt);
}
return;
}
@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™.