# %shmdt() function

The %shmdt() function detaches the shared
memory segment located at the address specified by *shmaddr*.

**For Windows:**Not Supported

## Syntax

```
value = %shmdt((char*)shmaddr)
```

## See also

- [%shmat() function](https://d3codex.com/pickbasic-flashbasic/percent-shmat-function/)
- [%shmget() function](https://d3codex.com/pickbasic-flashbasic/percent-shmget-function/)
- [FlashBASIC C functions overview](https://d3codex.com/pickbasic-flashbasic/flashbasic-c-functions-overview/)
- [cfunction statement](https://d3codex.com/pickbasic-flashbasic/cfunction-statement/)

---
Source: https://d3codex.com/pickbasic-flashbasic/percent-shmdt-function/ - part of the D3Codex reference.
