---
name: "sc_base64_decode"
section: "3"
platform: "linux"
package: "libopensc2-dev"
version: "0.11.13-1.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_base64_decode"
---

# sc\_base64\_decode(3)

Decode a base64 stream

## NAME

sc\_base64\_decode - Decode a base64 stream

## SYNOPSIS

```
#include <opensc.h>
int sc_base64_decode(const char *inbuf,
                     unsigned char *outbuf, size_t outlen);
```

## DESCRIPTION

This function decodes the base64 stream in *inbuf*, which is NULL-terminated, to the buffer pointed to by *outbuf* (which is *outlen* bytes long);

## RETURN VALUE

Returns 0 if successful, or a negative value in case of error.
