Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
daniel:// stenberg://
@bagder@mastodon.social  ·  activity timestamp 4 days ago

Parsing integers in C. Aka "bye bye atoi".

https://daniel.haxx.se/blog/2025/11/13/parsing-integers-in-c/

#curl #development

daniel.haxx.se

Parsing integers in C

In the standard libc API set there are multiple functions provided that do ASCII numbers to integer conversions. They are handy and easy to use, but also error-prone and quite lenient in what they accept and silently just swallow. atoi atoi() is perhaps the most common and basic one. It converts from a string to … Continue reading Parsing integers in C →
  • Copy link
  • Flag this post
  • Block
Patrick Morris Miller
@kentenmakto@mastodon.ie replied  ·  activity timestamp 3 days ago

@bagder Is there *anything* in libc that doesn't suck?

  • Copy link
  • Flag this comment
  • Block
Fredrik Björeman
@bjoreman@toot.cafe replied  ·  activity timestamp 3 days ago

@bagder @siracusa The thought “You two should be in a podcast episode together” popped into my head and I had to write this to get it out. I know it’d be interesting talk, and I have no idea which directions it would go in.

Just leaving that thought here, kthxbye

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login