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   |
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);
|
|
|
Goto Forum:
Current Time: Mon Aug 18 17:43:38 CEST 2025
Total time taken to generate the page: 0.07142 seconds
|