Re: C run time error in Tandem.
"jk__c" <firstname.lastname@example.org> wrote in message
> I get a run time error in the below sprintf when I try executing the c
> program in Tandem. This code is successfully compiled and tested in
> windows. I'm trying to convert an array of unsigned char to a char string
> using sprintf and it fails exactly at this line. If I replace sprintf with
> a normal printf("%02X",sha256sum[j])
> in the below code also the same error occurs.
> unsigned char sha256sum;
> char converted;
> for( j = 0; j < 32; j++ )
What's the value of j when it fails? What happens when you vary a few
(Eg, working with printf(), print less than 32 values, or print the same
element of sha256sum 32 times, or print another signed char array instead,
or use a different print format such as "%d", etc. At some point, the error
will disappear, and that might give a clue. Although it's also possible the
error is something else entirely and only manifests itself here.)
|All times are GMT. The time now is 01:56 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.