Changeset 087c27f6 in mainline for uspace/app/bdsh/cmds/modules/printf/printf.c
- Timestamp:
- 2012-04-01T19:21:45Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9d58539
- Parents:
- 8e81a7e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/printf/printf.c
r8e81a7e r087c27f6 58 58 } 59 59 60 60 /** Print a formatted data with lib printf. 61 * 62 * Currently available format flags are: 63 * '%d' - integer. 64 * '%u' - unsigned integer. 65 * '%s' - null-terminated string. 66 ***** 67 * @param ch formatted flag. 68 * @param arg string with data to print. 69 */ 61 70 static int print_arg(wchar_t ch, const char* arg) 62 71 { … … 77 86 } 78 87 79 static int process_esc(wchar_t ch) 88 /** Process a control character. 89 * 90 * Currently available characters are: 91 * '\n' - new line. 92 ***** 93 * @param ch Control character. 94 */ 95 static int process_ctl(wchar_t ch) 80 96 { 81 97 switch(ch) { … … 90 106 91 107 92 /* Prints formatted data. 108 /** Prints formatted data. 109 * 93 110 * Accepted format flags: 94 111 * %d - print an integer … … 148 165 default: 149 166 if (esc_flag) { 150 process_ esc(ch);167 process_ctl(ch); 151 168 esc_flag = false; 152 169 break;
Note:
See TracChangeset
for help on using the changeset viewer.