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 » signature of the stou function
Re: signature of the stou function [message #871 is a reply to message #854] Mon, 06 February 2006 14:09 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Another thing I am finding strange is the completely different naming for string->unsigned int and string->signed int conversion functions. Different function name, different parameter name (radix/base). I believe they should rather follow the same naming scheme: ScanInt and ScanUInt.
unsigned      stou(const char *ptr, void *endptr = NULL, unsigned base = 10);
unsigned      stou(const byte *ptr, void *endptr = NULL, unsigned base = 10);
unsigned      stou(const wchar *ptr, void *endptr = NULL, unsigned base = 10);
int           ScanInt(const char *ptr, const char **endptr = NULL, int radix = 10);
int           ScanInt(const wchar *ptr, const wchar **endptr = NULL, int radix = 10);
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bits/atomicity.h
Next Topic: Xmlize and double
Goto Forum:
  


Current Time: Mon Aug 18 17:43:10 CEST 2025

Total time taken to generate the page: 0.07514 seconds