[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need a Decimal to Hex and Hex to Decimal string converter


  • To: Ernie Bonugli <ebonugli@xxxxxxxx>
  • Subject: Re: Need a Decimal to Hex and Hex to Decimal string converter
  • From: Alex Matulich <alex@xxxxxxxxxxxxxx>
  • Date: Mon, 10 Mar 2003 19:08:02 -0800

PureBytes Links

Trading Reference Links

>Would  anyone  have  a  hex  to decimal and a decimal to hex
>string functions in EasyLanguage format? Would you share?

If you can read C or C++, the source code for these are available
here and many other places:

http://www.codeproject.com/cpp/baseconvert.asp

This code makes calls to other functions probably described elsewhere on
that web site but their use is easy to figure out:

_tcscpy(string1,string2) copies string2 to string1 just like strcpy().
_tcsupr(string) converts a string to uppercase.
_tcsncpy(string1, string2, n) copies n characters from string2 to string1.
_tcschr(string, character) returns true if character is in string, just
    like strchr().

EasyLanguage's string handling features really bite, though; this is
one area where C and C++ really excel.  It'll be tough to implement
it in EL; may be simpler to do it as a DLL.


-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com