jbuffer
jbuffer.h
Go to the documentation of this file.
1
10#ifndef JBUFFER_H
11#define JBUFFER_H
12
13#include <stdlib.h>
14
15
17typedef struct BNDBUF BNDBUF;
18
31BNDBUF *bbCreate(size_t size);
32
41void bbDestroy(BNDBUF *bb);
42
52void bbPut(BNDBUF *bb, int value);
53
63int bbGet(BNDBUF *bb);
64
65
66#endif /* JBUFFER_H */
void bbDestroy(BNDBUF *bb)
Destroys a bounded buffer.
void bbPut(BNDBUF *bb, int value)
Adds an element to a bounded buffer.
struct BNDBUF BNDBUF
Definition: jbuffer.h:17
int bbGet(BNDBUF *bb)
Retrieves an element from a bounded buffer.
BNDBUF * bbCreate(size_t size)
Creates a new bounded buffer.