#include #include #include #include #include #include #include "Buzon.h" #define LABEL_SIZE 64 int main( int argc, char ** argv ) { struct msgbuf { long mtype; // message type, must be > 0 int times; // Times that label appears char label[ LABEL_SIZE ]; // Label to send to mailbox }; struct msgbuf A; int id, size, st; Message m; st = m.Recibir( (void *) &A, 2023 ); // Receives a message with 2019 type while ( st > 0 ) { printf("Label: %s, times %d \n", A.label, A.times ); st = m.Recibir( (void *) &A, 2023 ); } }