Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / test / exec / portreceive.c
blob9438f7145e277e9dba34a6fd78f2ac7331b1c4ff
1 #include <proto/exec.h>
2 #include <proto/alib.h>
4 #include <exec/ports.h>
5 #include <stdio.h>
7 int main(void)
9 struct Message *msg;
10 struct MsgPort *port;
12 port = CreatePort("PORTTEST", 0);
13 if (port==NULL)
15 puts("Error creating port");
16 return 20;
19 WaitPort(port);
20 msg = GetMsg(port);
21 puts("Message received");
22 ReplyMsg(msg);
23 puts("Message returned");
25 DeletePort(port);
27 return 0;