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_special

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

Type:bool

Parameter:

TypeParameterName
unsigned charc
char **dst
char *end
351  out = dst
355  Case c == '\\'
356  to = '\\'
357  Break
358  Case c == '\a'
359  to = 'a'
360  Break
361  Case c == '\e'
362  to = 'e'
363  Break
364  Default
365  Return false
368  If out < end Then out = '\\'
370  ++out
371  If out < end Then out = to
373  ++out
375  dst = out
376  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