| 1 |
.TH "AUDIT_VALUE_NEEDS_ENCODING" "3" "Apr 2021" "Red Hat" "Linux Audit API" |
| 2 |
.SH NAME |
| 3 |
audit_value_needs_encoding \- check a string to see if it needs encoding |
| 4 |
.SH "SYNOPSIS" |
| 5 |
.nf |
| 6 |
.B #include <libaudit.h> |
| 7 |
.PP |
| 8 |
.BI "int audit_value_needs_encoding(const char *" str ", unsigned int " size "); |
| 9 |
.fi |
| 10 |
.SH "DESCRIPTION" |
| 11 |
.BR audit_value_needs_encoding () |
| 12 |
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. |
| 13 |
.I str |
| 14 |
is the string to check if encoding is needed. |
| 15 |
.I size |
| 16 |
is the length of str. |
| 17 |
|
| 18 |
.SH "RETURN VALUE" |
| 19 |
|
| 20 |
The return value if encoding is needed is 1. If not needed is 0. |
| 21 |
|
| 22 |
.SH "SEE ALSO" |
| 23 |
|
| 24 |
.BR audit_encode_nv_string (3). |
| 25 |
|
| 26 |
.SH AUTHOR |
| 27 |
Steve Grubb |