Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #ifndef __FIFO_h
  2. #define __FIFO_h
  3.  
  4. #include <sys/shm.h>
  5.  
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #define _SIZE 10
  9.  
  10. typedef struct FIFO
  11. {
  12.     char * arr;
  13.     int amount;
  14.     int read;
  15.     int write;
  16. }FIFO;
  17.  
  18. void Init(FIFO *val);
  19. int GetAmount(FIFO *val);
  20. char Pop(FIFO *val);
  21. char First(FIFO *val);
  22. void Push(FIFO *val, char c);
  23.  
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement