Normally I suggest passing the array to the function as a parameter. Otherwise using static will work, but you must be careful if you try to call the function more than once. Another way is to use dynamic memory allocation for this array (malloc/free).hurm.. what is the correct way to return that value?
That's probably because your binNumChar has been defined with a size of 9.and there's also problem with the value inside hexnum[j] when I convert something more than '111111111' (9 digits)
What exactly are you passing into this function? Please give a couple of examples.
Jim



LinkBack URL
About LinkBacks


