opensc/doc/api/init/sc_get_cache_dir.xml

41 lines
1013 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<refentry id="scgetcachedir">
<refentryinfo><title>OpenSC API Reference</title></refentryinfo>
<refmeta>
<refentrytitle>sc_get_cache_dir</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>opensc</refmiscinfo>
</refmeta>
<refnamediv>
<refname>sc_get_cache_dir</refname>
<refpurpose>Get the OpenSC cache directory</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<para>
<programlisting>
#include &lt;opensc.h&gt;
int sc_get_cache_dir(struct sc_context *ctx, char *buf, size_t bufsize);
</programlisting>
</para>
</refsect1>
<refsect1>
<title>Description</title>
<para>
This function stores the OpenSC cache directory for the current user in the buffer pointed to by
<emphasis>buf</emphasis>, which is <emphasis>bufsize</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>