Namespaces
Variants
Actions

Standard library header <stdckdint.h> (C23)

From cppreference.com
< c‎ | header
 
C
 
Standard Library headers

This header is part of numeric library, in particular, it provides type-generic macros for checked integer arithmetic.

Functions

checked addition operation on two integers
(type-generic function macro)[edit]
checked subtraction operation on two integers
(type-generic function macro)[edit]
checked multiplication operation on two integers
(type-generic function macro)[edit]

[edit] Synopsis

#define __STDC_VERSION_STDCKDINT_H__ 202311L
 
bool ckd_add(/*type1*/* result, /*type2*/ a, /*type3*/ b);
bool ckd_sub(/*type1*/* result, /*type2*/ a, /*type3*/ b);
bool ckd_mul(/*type1*/* result, /*type2*/ a, /*type3*/ b);

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant