Re: C run time error in Tandem.

Discussion in 'C Programming' started by Johann Klammer, Jan 4, 2013.

  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.
    >
    > ERROR
    > -----------------------------------
    > - *** Run-time Error 003 ***
    > - Instruction failure
    >
    > CODE SNIPPET
    > ------------------------------------
    >
    > unsigned char sha256sum[32];
    > char converted[65];
    > ....
    > ....
    >
    > for( j = 0; j< 32; j++ )
    > {
    > sprintf(&converted[j*2],"%02X",sha256sum[j]);
    > }
    >
    > JK
    >
    >
    >


    Give more context please. Is this an emulation thing? What compiler?
    Johann Klammer, Jan 4, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ajay

    Use of AXIS on Tandem

    Ajay, Oct 16, 2003, in forum: Java
    Replies:
    0
    Views:
    406
  2. Joachim Schmitz

    Re: C run time error in Tandem.

    Joachim Schmitz, Jan 4, 2013, in forum: C Programming
    Replies:
    0
    Views:
    237
    Joachim Schmitz
    Jan 4, 2013
  3. Ken Brody

    Re: C run time error in Tandem.

    Ken Brody, Jan 4, 2013, in forum: C Programming
    Replies:
    0
    Views:
    174
    Ken Brody
    Jan 4, 2013
  4. BartC

    Re: C run time error in Tandem.

    BartC, Jan 4, 2013, in forum: C Programming
    Replies:
    0
    Views:
    201
    BartC
    Jan 4, 2013
  5. Tor Rustad

    Re: C run time error in Tandem.

    Tor Rustad, Jan 10, 2013, in forum: C Programming
    Replies:
    0
    Views:
    195
    Tor Rustad
    Jan 10, 2013
Loading...

Share This Page