Encode a normal string and save it in the output file.
Unlike camel_file_util_encode_string
, it pads the str
with "NULL" bytes, if len
is > strlen(
str)
str |
value to output |
len |
total-len of str to store |
out |
file to output to |
0 on success, -1 on error. |