---
name: "atomic_add"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/atomic_add/9"
---

# atomic\_add(9)

add integer to atomic variable

## NAME

atomic\_add - add integer to atomic variable

## SYNOPSIS

**void atomic\_add(int** *i***, atomic\_t \*** *v***);**

## ARGUMENTS

*i*

integer value to add

*v*

pointer of type atomic\_t

## DESCRIPTION

Atomically adds *i* to *v*.

## COPYRIGHT
