convert string to long, and long to string
Quote:
> >huh? There is no long (arithmetic) value of "this.is.foo"
> What about hashing? Review faq 20.29
Of course you can find some value for a string, but that's dependent
entirely on what you want that value to be and how you want to generate
it, and it would be tough to convert it back (assuming there were even
one unique string to map back to). Converting "1024" to a long int
tells me I want 1024 in my long int, but hashing it doesn't tell me
what's going to be in there because there are multitudes of different
hashing functions (including strtol and atoi perhaps).
--
I believe we can change anything.
I believe in my dream.
- Joe Satriani