Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: C run time error in Tandem.

Thread Tools

Re: C run time error in Tandem.

Tor Rustad
Posts: n/a
On Friday, January 4, 2013 6:33:55 AM UTC+1, jk__c wrote:
> 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.

Your code looks ok, the bug is located elsewhere. One thing to watch out for when porting hashing modules to Tandem, is that hashing is typically endian dependent, i.e. may require some tweaking before working on a big endiansystem. But that should not give run-time error.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time template list definition / Run-time variable type definition Pierre Yves C++ 2 01-10-2008 02:52 PM
error(logic or run time error) in my program plz help! iskeletor C Programming 3 12-26-2006 07:02 AM
Is time.time() < time.time() always true? flamesrock Python 8 11-24-2006 06:51 AM
Unlikely differences between design time and run time. Tzury Bar Yochay ASP .Net 3 11-29-2003 08:56 AM
Determining control behaviour at design-time/run-time Paul Cook ASP .Net 0 11-06-2003 09:17 AM