fork download
  1. #include <stdio.h>
  2.  
  3. struct komunikat
  4. {
  5. long int typ;
  6. char text[10];
  7. };
  8.  
  9. void dostales_wiad(int, struct komunikat*, int);
  10. void wyslij_wiad(int, struct komunikat*);
  11.  
  12. void dostales_wiad(int kolejka, struct komunikat* wiad, int r)
  13. {
  14. int blad = msgrcv(kolejka, wiad, 10, r, 0);
  15. }
  16.  
  17. void wyslij_wiad(int kolejka, struct komunikat* wiad)
  18. {
  19. int blad = msgsnd(kolejka, &wiad, 10, 0);
  20. }
  21.  
  22. int main(void) {
  23. // your code goes here
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0s 2108KB
stdin
Standard input is empty
stdout
Standard output is empty