Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:move_right

Proto:static void move_right(char *buf, char *end, unsigned len, unsigned spaces)

Type:void

Parameter:

TypeParameterName
char *buf
char *end
unsignedlen
unsignedspaces
555  If buf >= end Then Return
557  size = end - buf
558  If size <= spaces Then
559  memset(buf, ' ', size)
560  Return
562  If len Then
563  If len > size - spaces Then len = size - spaces
565  memmove(buf + spaces, buf, len)
567  memset(buf, ' ', spaces)
Caller
NameDescribe
widen_stringHandle field width padding for a string.*@buf: current buffer position*@n: length of string*@end: end of output buffer*@spec: for field width and flags* Returns: new buffer position after padding.