---
name: "sc_make_cache_dir"
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_make_cache_dir"
---

# sc\_make\_cache\_dir(3)

Create the OpenSC cache directory

## NAME

sc\_make\_cache\_dir - Create the OpenSC cache directory

## SYNOPSIS

```
#include <opensc.h>
int sc_make_cache_dir(struct sc_context *ctx);
```

## DESCRIPTION

This function creates the OpenSC cache directory for the current user, and any directories leading up to it.

## RETURN VALUE

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