---
name: "mdex_basedir"
section: "3"
platform: "linux"
package: "liblibrecast-dev"
version: "0.9.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mdex_basedir"
---

# mdex\_basedir(3)

set base directory for multicast index

## NAME

mdex\_basedir - set base directory for multicast index

## LIBRARY

Librecast library (*liblibrecast*, *-llibrecast*)

## SYNOPSIS

```
#include <librecast/mdex.h>
```

**void mdex\_basedir(mdex\_t** *\*mdex***, char** *\*basedir***);**

Compile and link with *-llibrecast*.

## DESCRIPTION

The **mdex\_basedir** function sets the base directory for *mdex* to *basedir*. This will be stripped from the the beginning of all files added to the index with [**mdex\_addfile**(3)](/mdex_addfile/3.md).

## RETURN VALUE

The **mdex\_basedir**() function returns no value.

## ERRORS

None.

## SEE ALSO

[**mdex\_init**(3)](/mdex_init/3.md), [**mdex\_free**(3)](/mdex_free/3.md), [**mdex\_get**(3)](/mdex_get/3.md), [**mdex\_put**(3)](/mdex_put/3.md), [**mdex\_del**(3)](/mdex_del/3.md), [**lc\_share**(3)](/lc_share/3.md)
