Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-28 06:12:17
Last Modify:2022-05-21 09:47:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:date_str

Proto:static __attribute__((__noinline__)) char *date_str(char *buf, char *end, const struct rtc_time *tm, bool r)

Type:char

Parameter:

TypeParameterName
char *buf
char *end
const struct rtc_time *tm
boolr
1752  year = tm_year + If r Then 0 Else 1900
1753  mon = tm_mon + If r Then 0 Else 1
1755  buf = number(buf, end, year, default_dec04_spec)
1756  If buf < end Then buf = '-'
1758  buf++
1760  buf = number(buf, end, mon, default_dec02_spec)
1761  If buf < end Then buf = '-'
1763  buf++
1765  Return number(buf, end, tm_mday, default_dec02_spec)
Caller
NameDescribe
rtc_str