logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

audit_value_needs_encoding - check a string to see if it needs encoding

Author

Steve Grubb Red Hat Apr 2021 AUDIT_VALUE_NEEDS_ENCODING(3)

Description

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. str is the string to check if encoding is needed. size is the length of str.

Name

audit_value_needs_encoding - check a string to see if it needs encoding

Return Value

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

See Also

audit_encode_nv_string(3).

Synopsis

#include<libaudit.h>intaudit_value_needs_encoding(constchar*str,unsignedintsize);

See Also