Radix Cocoa Class: Int Binary Value to Char String
Radix Cocoa Class: Int Binary Value to Char String
- Subject: Radix Cocoa Class: Int Binary Value to Char String
- From: Jordan Evans <email@hidden>
- Date: Fri, 6 Jan 2006 10:19:45 -0800 (PST)
sherm wrote:
|Or, if you need to avoid messaging entirely, and a
char* string is
|sufficient:
|
| char *foo;
| retCode = asprintf(&foo, "%u",
anUnsignedInt);
| if (NULL != foo) {
| // Do stuff with foo
| free(foo);
| }
I'm really looking for the internal way that the
search is done.
Say I have a multibase string, where the string is
three digits long. The most significant digit is base
ten, the second most significant digit is base 16 and
the first digit is base 8. The class that I provided
is a draft of what will find any sequence according
the situation I just explained with multibase strings,
but it's really an algorithm that would be best for
producing all results, which is fine, but I need one
that produces one result. So, that's why I need a
very fast algorithm that turns a integer value into a
string, so I can integrate with this drafted Radix
class.
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden