Rev 1272 | Rev 1616 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1272 | Rev 1444 | ||
|---|---|---|---|
| Line 430... | Line 430... | ||
| 430 | * @param fmt Formatting NULL terminated string. |
430 | * @param fmt Formatting NULL terminated string. |
| 431 | * @return Number of printed characters or negative value on failure. |
431 | * @return Number of printed characters or negative value on failure. |
| 432 | */ |
432 | */ |
| 433 | int printf_core(const char *fmt, struct printf_spec *ps, va_list ap) |
433 | int printf_core(const char *fmt, struct printf_spec *ps, va_list ap) |
| 434 | { |
434 | { |
| 435 | int i = 0, j = 0; /**< i is index of currently processed char from fmt, j is index to the first not printed nonformating character */ |
435 | int i = 0, j = 0; /* i is index of currently processed char from fmt, j is index to the first not printed nonformating character */ |
| 436 | int end; |
436 | int end; |
| 437 | int counter; /**< counter of printed characters */ |
437 | int counter; /* counter of printed characters */ |
| 438 | int retval; /**< used to store return values from called functions */ |
438 | int retval; /* used to store return values from called functions */ |
| 439 | char c; |
439 | char c; |
| 440 | qualifier_t qualifier; /**< type of argument */ |
440 | qualifier_t qualifier; /* type of argument */ |
| 441 | int base; /**< base in which will be parameter (numbers only) printed */ |
441 | int base; /* base in which will be parameter (numbers only) printed */ |
| 442 | uint64_t number; /**< argument value */ |
442 | uint64_t number; /* argument value */ |
| 443 | size_t size; /**< byte size of integer parameter */ |
443 | size_t size; /* byte size of integer parameter */ |
| 444 | int width, precision; |
444 | int width, precision; |
| 445 | uint64_t flags; |
445 | uint64_t flags; |
| 446 | 446 | ||
| 447 | counter = 0; |
447 | counter = 0; |
| 448 | 448 | ||