Lines Matching refs:buffer
22 /** FORMATTED BUFFER PRINTING
25 ** content to a given bounded character buffer, in a way that is easier
28 ** 'buffer' is the start position in the buffer,
29 ** 'buffend' is the end of the buffer, the function assumes (buffer <= buffend)
33 ** the function returns the next position in the buffer if everything fits
39 ** char buffer[1024];
40 ** char* p = buffer;
41 ** char* end = p + sizeof(buffer);
48 ** (this means that even if p >= end, the content of "buffer" is zero-terminated)
53 extern char* vbufprint(char* buffer, char* buffend, const char* fmt, va_list args );
54 extern char* bufprint (char* buffer, char* buffend, const char* fmt, ... );
58 ** bufprint_add_dir() appends the application's directory to a given bounded buffer
61 ** to a bounded buffer. on Unix this is usually ~/.android, and something a bit more
65 ** user-specific configuration directory to a bounded buffer. this really is equivalent
68 ** bufprint_temp_dir() appends the temporary directory's path to a given bounded buffer
74 extern char* bufprint_app_dir (char* buffer, char* buffend);
75 extern char* bufprint_config_path(char* buffer, char* buffend);
76 extern char* bufprint_config_file(char* buffer, char* buffend, const char* suffix);
77 extern char* bufprint_temp_dir (char* buffer, char* buffend);
78 extern char* bufprint_temp_file (char* buffer, char* buffend, const char* suffix);