Skip to content

Add Support for 'strnto{ll,ull,imax,umax,q,uq}'#4

Merged
gerickson merged 34 commits into
mainfrom
user/gerickson/gitlab-issue-3-add-ll_ull_imax_umax_q_uq-interfaces
Apr 6, 2026
Merged

Add Support for 'strnto{ll,ull,imax,umax,q,uq}'#4
gerickson merged 34 commits into
mainfrom
user/gerickson/gitlab-issue-3-add-ll_ull_imax_umax_q_uq-interfaces

Conversation

@gerickson

Copy link
Copy Markdown
Owner

This addresses and closes #3 by:

  • Adding support six new interfaces:
    1. strnto[u]ll
    2. strnto[iu]max
    3. strnto[u]q
  • Fixing a bug in signed conversion where values representable in the unsigned type but exceeding the signed range (for example, 0x8000000000000000 for a 64-bit signed type) were silently cast rather than clamped with ERANGE. Historically, this affected strntol for inputs between LONG_MAX + 1 and ULONG_MAX that did not trigger unsigned overflow.

gerickson added 30 commits April 6, 2026 15:50
@gerickson gerickson self-assigned this Apr 6, 2026
@gerickson gerickson added bug Something isn't working enhancement New feature or request labels Apr 6, 2026
@gerickson gerickson merged commit 2d77243 into main Apr 6, 2026
16 checks passed
@gerickson gerickson deleted the user/gerickson/gitlab-issue-3-add-ll_ull_imax_umax_q_uq-interfaces branch April 6, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ll/ull/imax/umax/q/uq Interfaces

1 participant