Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/printf.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/coreutils/printf.c
r3232 r3621 132 132 } 133 133 134 /* Handles %b */135 static voidprint_esc_string(const char *str)134 /* Handles %b; return 1 if output is to be short-circuited by \c */ 135 static int print_esc_string(const char *str) 136 136 { 137 137 char c; … … 146 146 } 147 147 } 148 else if (*str == 'c') { 149 return 1; 150 } 148 151 { 149 152 /* optimization: don't force arg to be on-stack, … … 156 159 putchar(c); 157 160 } 161 162 return 0; 158 163 } 159 164 … … 281 286 if (*f == 'b') { 282 287 if (*argv) { 283 print_esc_string(*argv); 288 if (print_esc_string(*argv)) 289 return saved_argv; /* causes main() to exit */ 284 290 ++argv; 285 291 }
Note:
See TracChangeset
for help on using the changeset viewer.