Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » StrInt returning value
Re: StrInt returning value [message #59850 is a reply to message #59848] Wed, 03 May 2023 15:21 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
forlano wrote on Wed, 03 May 2023 08:06
Hello,

it seems that StrInt() return an integer but it can return even a Null in case the conversion cannot be done.
I would like that StrInt() can return 0 as default instead of Null.
Do we have an alternative version of StrInt() that return 0 as default?



Well, we already had Atof, so I guess it is logical to have Atoi and Atoi64.

https://github.com/ultimatepp/ultimatepp/commit/0cea273540d8 f19c65bc6994cb5f40ccafbf1bab

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: CreateProcessW doesn't compile with CLANG
Next Topic: memory consumption of my application
Goto Forum:
  


Current Time: Mon Jul 14 06:23:02 CEST 2025

Total time taken to generate the page: 0.04912 seconds