Lines Matching refs:format
23 const char* format = "name: %name% version: %version%\n";
27 { "format", required_argument, 0, 'f' },
39 format = optarg;
73 // parse format string and produce output
75 while (*format != '\0') {
76 char c = *format++;
80 const char* start = format;
81 while (*format != '\0' && *format != '%')
82 format++;
83 if (*format != '%') {
84 fprintf(stderr, "Error: Unexpected at end of the format "
89 if (format == start) {
92 BString variable(start, format - start);
101 "in format string.\n", variable.String());
106 format++;
111 c = *format++;
113 fprintf(stderr, "Error: \"\\\" at the end of the format "