Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * buffer.h
- *
- * Created on: 20.04.2014
- * Author: LemanRuss777
- */
- #ifndef BUFFER_H_
- #define BUFFER_H_
- #endif /* BUFFER_H_ */
- typedef struct buffer {
- int ind, max_ind, size;
- void* data;
- };
- int bufferwrite(buffer* buf, void* elem){
- If (buf -> ind = = buf -> max_ind)
- buf -> idn = 0;
- memepy(buf->data+buf->ind* buf->size,elem,buf->size);
- ++buf->ind;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement