Decode a normal string from the input file.
str |
pointer to a variable to store the value in |
len |
total-len to decode. |
in |
file to read from |
0 on success, -1 on error. |