Function report |
Source Code:arch\x86\boot\printf.c |
Create Date:2022-07-28 07:26:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:number
Proto:static char *number(char *str, long num, int base, int size, int precision, int type)
Type:char
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | str | |
| long | num | |
| int | base | |
| int | size | |
| int | precision | |
| int | type |
| 45 | digits[16] = "0123456789ABCDEF" |
| 53 | locase = type & Must be 32 == 0x20 |
| 54 | If type & left justified Then type &= ~pad with zero |
| 58 | c = If type & pad with zero Then '0' Else ' ' |
| 59 | sign = 0 |
| 60 | If type & unsigned/signed long Then |
| 61 | If num < 0 Then |
| 68 | Else if type & space if plus Then |
| 79 | i = 0 |
| 88 | If Not (type & pad with zero + left justified ) Then When size-- > 0 cycle |
| 90 | str++ = ' ' |
| 101 | If Not (type & left justified ) Then When size-- > 0 cycle |
| 105 | str++ = '0' |
| 109 | str++ = ' ' |
| 110 | Return str |
| Name | Describe |
|---|---|
| vsprintf |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |