Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:escape_hex

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

Type:bool

Parameter:

TypeParameterName
unsigned charc
char **dst
char *end
420  out = dst
422  If out < end Then out = '\\'
424  ++out
425  If out < end Then out = 'x'
427  ++out
428  If out < end Then out = hex_asc_hi(c)
430  ++out
431  If out < end Then out = hex_asc_lo(c)
433  ++out
435  dst = out
436  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
string_escape_mem_ascii