File: audit_value_needs_encoding.3

package info (click to toggle)
audit 1%3A3.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,916 kB
  • sloc: ansic: 57,158; sh: 5,100; python: 2,938; makefile: 1,494; sed: 32
file content (27 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.TH "AUDIT_VALUE_NEEDS_ENCODING" "3" "Apr 2021" "Red Hat" "Linux Audit API"
.SH NAME
audit_value_needs_encoding \- check a string to see if it needs encoding
.SH "SYNOPSIS"
.nf
.B #include <libaudit.h>
.PP
.BI "int audit_value_needs_encoding(const char *" str ", unsigned int " size ");
.fi
.SH "DESCRIPTION"
.BR audit_value_needs_encoding ()
checks a string to see if it needs encoding. Specifically, this function checks if the string contains a space, a double-quote, or a control character.
.I str
is the string to check if encoding is needed.
.I size
is the length of str.

.SH "RETURN VALUE"

The return value if encoding is needed is 1. If not needed is 0.

.SH "SEE ALSO"

.BR audit_encode_nv_string (3).

.SH AUTHOR
Steve Grubb