opensc/doc/api/util/sc_base64_decode.xml

43 lines
1.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<refentry id="scbase64decode">
<refentryinfo><title>OpenSC API Reference</title></refentryinfo>
<refmeta>
<refentrytitle>sc_base64_decode</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>opensc</refmiscinfo>
</refmeta>
<refnamediv>
<refname>sc_base64_decode</refname>
<refpurpose>Decode a base64 stream</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<para>
<programlisting>
#include &lt;opensc.h&gt;
int sc_base64_decode(const char *inbuf,
unsigned char *outbuf, size_t outlen);
</programlisting>
</para>
</refsect1>
<refsect1>
<title>Description</title>
<para>
This function decodes the base64 stream in <emphasis>inbuf</emphasis>, which is NULL-terminated,
to the buffer pointed to by <emphasis>outbuf</emphasis> (which is <emphasis>outlen</emphasis>
bytes long);
</para>
</refsect1>
<refsect1>
<title>Return value</title>
<para>
Returns 0 if successful, or a negative value in case of error.
</para>
</refsect1>
</refentry>