Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:string_escape_mem_ascii

Proto:int string_escape_mem_ascii(const char *src, size_t isz, char *dst, size_t osz)

Type:int

Parameter:

TypeParameterName
const char *src
size_tisz
char *dst
size_tosz
549  p = dst
550  end = p + osz
552  When isz-- cycle
553  c = src++
555  If Not isprint(c) || Not isascii(c) || c == '"' || c == '\\' Then escape_hex(c, & p, end)
557  Else escape_passthrough(c, & p, end)
561  Return p - dst