Changeset 1433ecda in mainline for uspace/app/bdsh/cmds/modules/printf/printf.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/printf/printf.c
r47b2d7e3 r1433ecda 69 69 * @param arg string with data to print. 70 70 */ 71 static int print_arg(wchar_t ch, const char *arg)71 static int print_arg(wchar_t ch, const char *arg) 72 72 { 73 switch (ch) {73 switch (ch) { 74 74 case 'd': 75 75 printf("%d", (int)(strtol(arg, NULL, 10))); … … 96 96 static int process_ctl(wchar_t ch) 97 97 { 98 switch (ch) {98 switch (ch) { 99 99 case 'n': 100 100 printf("\n"); … … 120 120 { 121 121 unsigned int argc; 122 char *fmt;122 char *fmt; 123 123 size_t pos, fmt_sz; 124 124 wchar_t ch; … … 142 142 143 143 while ((ch = str_decode(fmt, &pos, fmt_sz))) { 144 switch (ch) {144 switch (ch) { 145 145 146 146 case '\\':
Note:
See TracChangeset
for help on using the changeset viewer.