---
name: "dictCreate"
section: "3"
platform: "linux"
package: "clearsilver-dev"
version: "0.10.5-6+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://carta.tech/man/dictCreate"
---

# dictCreate(3)

create new dictionary.

## NAME

dictCreate  - create new dictionary.

## SYNOPSIS

```
#include <util/dict.h>
```

```
NEOERR *dictCreate(dictCtx *dict, BOOL threaded, UINT32 root, UINT32 maxLevel,
    UINT32 flushLimit, BOOL useCase,
    dictFreeValueFunc freeValue, void *freeRock);
```

## ARGUMENTS

threaded - true if list should be thread-safe.\
 root - performance parameter (see above).\
 maxLevel - performance parameter (see above).\
 flushLimit - max deleted items to keep cached before\
 forcing a flush.\
 useCase - true to be case sensitive in identifiers\
 freeValue - callback when freeing a value\
 freeRock - context for freeValue callback

## DESCRIPTION

Returns a dictionary.  If \<threaded\> is true, list is multi-thread safe.  \<root\>, \<maxLevel\>, and \<flushLimit\> act as for skipNewList() (see skiplist.h)

MT-Level: Safe.

## RETURN VALUE

None.

## SEE ALSO

[**dictDestroy**(3)](/man/dictDestroy/3.md), [**dictCleanup**(3)](/man/dictCleanup/3.md), [**dictReleaseLock**(3)](/man/dictReleaseLock/3.md), [**dictRemove**(3)](/man/dictRemove/3.md), [**dictNext**(3)](/man/dictNext/3.md), [**dictCreate**(3)](/man/dictCreate/3.md), [**dictSetValue**(3)](/man/dictSetValue/3.md), [**dictModifyValue**(3)](/man/dictModifyValue/3.md), **dictSearch**
