Camel.file_util_encode_fixed_string
Description: Reference for Camel.file_util_encode_fixed_string

### Function

# Camelfile_util_encode_fixed_string

#### Declaration [src]

    gint
    camel_file_util_encode_fixed_string (
      FILE* out,
      const gchar* str,
      gsize len
    )

#### Description [src]

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).

#### Parameters

`out`

  Type: `FILE*`

  File to output to.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

`str`

  Type: `const gchar*`

  Value to output.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`len`

  Type: `gsize`

  Total-len of str to store.

#### Return value

Type: `gint`

0 on success, -1 on error.