aboutsummaryrefslogtreecommitdiff
path: root/2025-linuxdays/overflow.c
blob: a21bf10a2a816e379b55ee62ba2bc8bb08491479 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <assert.h>
#include <stdckdint.h>
#include <stdint.h>

int main(int argc, char *argv[]) {
  int8_t add, sub, mul;
  assert(ckd_add(&add, 50, 85));
  assert(ckd_sub(&sub, 10, 150));
  assert(ckd_mul(&mul, 68, 2));
  return 0;
}