函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:17
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:move_right

函数原型:static void move_right(char *buf, char *end, unsigned len, unsigned spaces)

返回类型:void

参数:

类型参数名称
char *buf
char *end
unsignedlen
unsignedspaces
555  如果buf大于等于end则返回
557  size等于endbuf
558  如果size小于等于spaces
559  memset(buf, ' ', size)
560  返回
562  如果len
563  如果len大于sizespaceslen等于sizespaces
565  memmove(buf + spaces, buf, len)
567  memset(buf, ' ', spaces)
调用者
名称描述
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.