24 #define ENABLE_CURLX_PRINTF 33 #define WARN_PREFIX "Warning: " 34 #define NOTE_PREFIX "Note: " 41 size_t width = (79 - strlen(prefix));
45 char print_buffer[256];
47 len =
vsnprintf(print_buffer,
sizeof(print_buffer), fmt, ap);
51 fputs(prefix, config->
errors);
56 while(!
ISSPACE(ptr[cut]) && cut) {
65 fputs(
"\n", config->
errors);
70 fputs(ptr, config->
errors);
106 void helpf(FILE *errors,
const char *fmt, ...)
111 fputs(
"curl: ", errors);
115 fprintf(errors,
"curl: try 'curl --help' " 117 "or 'curl --manual' " 119 "for more information\n");
UNITTEST_START char * ptr