Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:escape_null

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

Type:bool

Parameter:

TypeParameterName
unsigned charc
char **dst
char *end
381  out = dst
383  If c Then Return false
386  If out < end Then out = '\\'
388  ++out
389  If out < end Then out = '0'
391  ++out
393  dst = out
394  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