Lines Matching refs:buffer
17 #define VSNPRINTF(buffer, size, format, args) \
18 vsnprintf_s(buffer, size, _TRUNCATE, format, args)
23 #define ARGS_TO_BUFFER(format, buffer, size) \
27 VSNPRINTF(buffer, size, format, args); \
31 static void printfAnalog(char* buffer, int size, const char format[], ...) {
32 ARGS_TO_BUFFER(format, buffer, size);
148 char buffer [40];
149 memset(buffer, 'a', 40);
150 REPORTER_ASSERT(reporter, buffer[18] == 'a');
151 REPORTER_ASSERT(reporter, buffer[19] == 'a');
152 REPORTER_ASSERT(reporter, buffer[20] == 'a');
153 printfAnalog(buffer, 20, "%30d", 0);
154 REPORTER_ASSERT(reporter, buffer[18] == ' ');
155 REPORTER_ASSERT(reporter, buffer[19] == 0);
156 REPORTER_ASSERT(reporter, buffer[20] == 'a');