"Fossies" - the Fresh Open Source Software Archive

Member "imapfilter-2.8.2/src/buffer.h" (26 Dec 2023, 440 Bytes) of package /linux/privat/imapfilter-2.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "buffer.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef BUFFER_H
    2 #define BUFFER_H
    3 
    4 
    5 #include <stdio.h>
    6 
    7 
    8 /* Temporary buffer. */
    9 typedef struct buffer {
   10     char *data;     /* Text or binary data. */
   11     size_t len;     /* Length of text or binary data. */
   12     size_t size;        /* Maximum size of data. */
   13 } buffer;
   14 
   15 
   16 /*  buffer.c    */
   17 void buffer_init(buffer *buf, size_t n);
   18 void buffer_free(buffer *buf);
   19 void buffer_reset(buffer *buf);
   20 void buffer_check(buffer *buf, size_t n);
   21 
   22 
   23 #endif              /* BUFFER_H */