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:string_unescape - unquote characters in the given string*@src: source buffer (escaped)*@dst: destination buffer (unescaped)*@size: size of the destination buffer (0 to unlimit)*@flags: combination of the flags.* Description:

Proto:int string_unescape(char *src, char *dst, size_t size, unsigned int flags)

Type:int

Parameter:

TypeParameterName
char *src
char *dst
size_tsize
unsigned intflags
270  out = dst
272  When src && --size cycle
273  If src[0] == '\\' && src[1] != '\0' && size > 1 Then
274  src++
275  size--
277  If flags & UNESCAPE_SPACE && unescape_space( & src, & out) Then Continue
281  If flags & UNESCAPE_OCTAL && unescape_octal( & src, & out) Then Continue
285  If flags & UNESCAPE_HEX && unescape_hex( & src, & out) Then Continue
289  If flags & UNESCAPE_SPECIAL && unescape_special( & src, & out) Then Continue
293  out++ = '\\'
295  out++ = src++
297  out = '\0'
299  Return out - dst
Caller
NameDescribe
test_string_unescape