C Library

C Library#

2026-10-23

1 min read time

Applies to Linux and Windows

This page covers the C standard library headers available in libhipcxx, which provide the C library facilities in the cuda::std namespace for host and device code.

Any Standard C++ header not listed below is omitted.

Header

Content

libhipcxx Availability

C++ Reference

<cuda/std/cassert>

Lightweight assumption testing

libhipcxx 2.7

<cassert>

<cuda/std/ccomplex>

C complex number arithmetic

libhipcxx 2.7

<ccomplex>

<cuda/std/cfloat>

Type support library

libhipcxx 2.7

<cfloat>

<cuda/std/cfloat>

Limits of floating point types

libhipcxx 2.7

<cfloat>

<cuda/std/climits>

Limits of integral types

libhipcxx 2.7

<climits>

<cuda/std/cmath>

Common math functions

libhipcxx 2.7

<cmath>

<cuda/std/cstddef>

Fundamental types

libhipcxx 2.7

<cstddef>

<cuda/std/cstdint>

Fundamental integer types

libhipcxx 2.7

<cstdint>

<cuda/std/cstdint>

Fixed-width integer types

libhipcxx 2.7

<cstdint>

<cuda/std/cstdlib>

Common utilities

libhipcxx 2.7

<cstdlib>

<cuda/std/cstring>

Provides array manipulation functions such as memcpy, memset and memcmp

libhipcxx 3.0

<cstring>

<cuda/std/ctime>

Provides clock, difftime, time and timespec_get functions

libhipcxx 3.4

<ctime>