Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sys/types.h>
- #include <sys/ipc.h>
- #include <sys/sem.h>
- #include <sys/shm.h>
- #include <stdio.h>
- #define PERMS 0666
- #define MSG_TYPE_EMPTY 0
- #define MSG_TYPE_STRING 1
- #define MSG_TYPE_FINISH 2
- #define MAX_STRING 120
- typedef struct {
- int type;
- int n;
- } message_t;
Advertisement
Add Comment
Please, Sign In to add comment