---
name: "firestring_estr_base64_encode"
section: "3"
platform: "linux"
package: "libfirestring-dev"
version: "0.9.12-8"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/firestring_estr_base64_encode"
---

# firestring\_estr\_base64\_encode(3)

encode an estring via base64 into another estring

## NAME

firestring\_estr\_base64\_encode - encode an estring via base64 into another estring

## SYNOPSIS

**#include \<firestring.h\>**\
 **-lfirestring**

**int firestring\_estr\_base64\_encode(struct firestring\_estr\_t \****destination***, struct firestring\_estr\_t \****source***)**

## DESCRIPTION

firestring\_estr\_base64\_encode() encodes the contents of *source* using the base64 algorithm into *destination*, provided that there is room in *destination*. The minimum required space in destination is the length of source \* 4 / 3 + 4.

## RETURN VALUE

0 if the string was encoded successfully; 1 if there was insufficient space in *destination* for the encoding to occur.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

[**libfirestring**(3)](/libfirestring/3.md)
