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

# atomic\_add\_negative(9)

add and test if negative

## NAME

atomic\_add\_negative - add and test if negative

## SYNOPSIS

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

## ARGUMENTS

*i*

integer value to add

*v*

pointer of type atomic\_t

## DESCRIPTION

Atomically adds *i* to *v* and returns true if the result is negative, or false when result is greater than or equal to zero.

## COPYRIGHT
