Search found 2 matches

by passionpatel
Tue Jul 15, 2008 5:33 pm
Forum: C / C# / C++
Topic: any solution to convert given char*(number) to required unsi
Replies: 2
Views: 14135

Re: any solution to convert given char*(number) to required unsi

found solution int number = 0; char numberchars[] = "10011210582553796"; int i = 0; int ans = 0; int carry = 0; char answerArray[100] = {0}; char remainderArray[100] = {0}; int remindex = 0; int ansindex = 0; int remainder = 0; while( numberchars != '\0' ) { while( numberchars != '\0' ) { char curre...
by passionpatel
Sun Jul 06, 2008 2:37 pm
Forum: C / C# / C++
Topic: any solution to convert given char*(number) to required unsi
Replies: 2
Views: 14135

any solution to convert given char*(number) to required unsi

Given For e.g, char input[] = "10011210582553796"; now Hexadecimal of 10011210582553796 is 2391249A8B74C4. So output unsigned char* should have value, unsigned char output[8] = {0x00,0x23,0x91,0x24,0x9A,0x8B,0x74,0xC4}; Any solution to convert given input char* to output char* with above mentioned r...