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_octal

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

Type:bool

Parameter:

TypeParameterName
unsigned charc
char **dst
char *end
399  out = dst
401  If out < end Then out = '\\'
403  ++out
404  If out < end Then out = ( c >> 6 & 0x07) + '0'
406  ++out
407  If out < end Then out = ( c >> 3 & 0x07) + '0'
409  ++out
410  If out < end Then out = ( c >> 0 & 0x07) + '0'
412  ++out
414  dst = out
415  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