How nicoadresse/nc works
NC is a header-only C library for checked integer and floating-point primitives, including heap-backed pointer wrappers and diagnostic logging. A user includes src/nc.h, then constructs and operates on typed values; ordinary checked operations report invalid results and use defaults, while “must” variants can terminate on errors. The graph groups related widths and signedness into subsystem nodes rather than listing every primitive. Relationships are based on the README and SOURCE INDEX references; unsampled modules are represented only where the tree supports them.
Main entry points: nc_log.h Logging API · nc_int_types.h Integer API · nc_float_types.h Float API · nc.h Umbrella header
Components 18
Public API
- Umbrella header
src/nc.h - Integer API
src/nc/nc_int_types.h - Float API
src/nc/nc_float_types.h
Integer primitives
- Integer types
src/nc/nc_int/nc_types.h - Integer operations
src/nc/nc_int/nc_i64/nc_i64.h - Integer checks
src/nc/nc_int/inc_helper_funcs.h - Integer constructors
src/nc/nc_int/nc_int_constructors.h - Integer pointers
src/nc/nc_int
Float primitives
- Float types
src/nc/nc_float/nc_float_primitives.h - Float operations
src/nc/nc_float/nc_f32/nc_f32.h - Float checks
src/nc/nc_float/inc_helper_funcs.h - Float constructors
src/nc/nc_float/nc_float_constructors.h - Float pointers
src/nc/nc_float/nc_ptr_f32/nc_ptr_f32.h
Diagnostics
- Logging API
src/nc/nc_log.h - Print statements
src/nc/nc_log/nc_print_stmts.h - Debug statements
src/nc/nc_log/nc_debug_stmts.h - Error statements
src/nc/nc_log/nc_error_stmts.h
Other components
- C application
Connections 23
- C application → Umbrella header: includes
README.md - Umbrella header → Integer API: includes
src/nc.h - Umbrella header → Float API: includes
src/nc.h - Umbrella header → Logging API: includes
src/nc.h - Integer API → Integer types: imports
src/nc/nc_int_types.h - Integer API → Integer operations: imports
src/nc/nc_int_types.h - Integer API → Integer constructors: imports
src/nc/nc_int_types.h - Integer API → Integer pointers: imports
src/nc/nc_int_types.h - Integer operations → Integer checks: checks with
src/nc/nc_int/nc_i64/nc_i64.h - Integer operations → Integer constructors: imports
src/nc/nc_int/nc_i64/nc_i64.h - Integer checks → Logging API: reports through
src/nc/nc_int/inc_helper_funcs.h - Integer pointers → Integer constructors: uses
src/nc/nc_int/nc_int_constructors.h - Float API → Float types: imports
src/nc/nc_float_types.h - Float API → Float operations: imports
src/nc/nc_float_types.h - Float API → Float constructors: imports
src/nc/nc_float_types.h - Float API → Float pointers: imports
src/nc/nc_float_types.h - Float operations → Float checks: checks with
src/nc/nc_float/nc_f32/nc_f32.h - Float constructors → Float checks: validates with
src/nc/nc_float/nc_float_constructors.h - Float pointers → Float constructors: uses
src/nc/nc_float/nc_ptr_f32/nc_ptr_f32.h - Float checks → Logging API: reports through
src/nc/nc_float/inc_helper_funcs.h - Logging API → Print statements: imports
src/nc/nc_log.h - Logging API → Debug statements: imports
src/nc/nc_log.h - Logging API → Error statements: imports
src/nc/nc_log.h