Lines Matching refs:buffer
18 /** FORMATTED BUFFER PRINTING
21 ** content to a given bounded character buffer, in a way that is easier
24 ** 'buffer' is the start position in the buffer,
25 ** 'buffend' is the end of the buffer, the function assumes (buffer <= buffend)
29 ** the function returns the next position in the buffer if everything fits
35 ** char buffer[1024];
36 ** char* p = buffer;
37 ** char* end = p + sizeof(buffer);
44 ** (this means that even if p >= end, the content of "buffer" is zero-terminated)
49 extern char* vbufprint(char* buffer, char* buffend, const char* fmt, va_list args );
50 extern char* bufprint (char* buffer, char* buffend, const char* fmt, ... );
54 ** bufprint_add_dir() appends the application's directory to a given bounded buffer
57 ** to a bounded buffer. on Unix this is usually ~/.android, and something a bit more
61 ** user-specific configuration directory to a bounded buffer. this really is equivalent
64 ** bufprint_temp_dir() appends the temporary directory's path to a given bounded buffer
70 extern char* bufprint_app_dir (char* buffer, char* buffend);
71 extern char* bufprint_config_path(char* buffer, char* buffend);
72 extern char* bufprint_config_file(char* buffer, char* buffend, const char* suffix);
73 extern char* bufprint_temp_dir (char* buffer, char* buffend);
74 extern char* bufprint_temp_file (char* buffer, char* buffend, const char* suffix);