Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\string_helpers.c Create Date:2022-07-28 06:25:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:escape_space

Proto:static bool escape_space(unsigned char c, char **dst, char *end)

Type:bool

Parameter:

TypeParameterName
unsigned charc
char **dst
char *end
315  out = dst
319  Case c == '\n'
320  to = 'n'
321  Break
322  Case c == '\r'
323  to = 'r'
324  Break
325  Case c == '\t'
326  to = 't'
327  Break
328  Case c == '\v'
329  to = 'v'
330  Break
331  Case c == '\f'
332  to = 'f'
333  Break
334  Default
335  Return false
338  If out < end Then out = '\\'
340  ++out
341  If out < end Then out = to
343  ++out
345  dst = out
346  Return true
Caller
NameDescribe
string_escape_memstring_escape_mem - quote characters in the given memory buffer*@src: source buffer (unescaped)*@isz: source buffer size*@dst: destination buffer (escaped)*@osz: destination buffer size*@flags: combination of the flags*@only: NULL-terminated string