函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\string_helpers.c Create Date:2022-07-27 07:23:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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:

函数原型:int string_unescape(char *src, char *dst, size_t size, unsigned int flags)

返回类型:int

参数:

类型参数名称
char *src
char *dst
size_tsize
unsigned intflags
270  out等于dst
272 srcsize先自减循环
273  如果src[0]恒等于'\\'且src[1]不等于'\0'且size大于1则
274  src自加
275  size自减
277  如果flags按位与UNESCAPE_SPACEunescape_space( & src, & out)则继续下一循环
281  如果flags按位与UNESCAPE_OCTALunescape_octal( & src, & out)则继续下一循环
285  如果flags按位与UNESCAPE_HEXunescape_hex( & src, & out)则继续下一循环
289  如果flags按位与UNESCAPE_SPECIALunescape_special( & src, & out)则继续下一循环
293  out自加等于'\\'
295  out自加等于src自加
297  out等于'\0'
299  返回:outdst
调用者
名称描述
test_string_unescape