• sprintf() problem.
    Hi! Can you please tell me what is wrong in here: /* An example from Cx51 userÂ's guide */ #include<stdio.h> #include<float.h> void main(void) { code char buf[100]; int n; int a,b; float pi;...
  • sprintf() problem.
    Hi! Can you please tell me what is wrong in here: /* An example from Cx51 userÂ's guide */ #include<stdio.h> #include<float.h> void main(void) { code char buf[100]; int n; int a,b; float pi;...
  • sprintf conversion problems
    Why does sprintf generate a Null when sprinting extended character 253(decimal) in to a a string variable? i.e. sprintf(s,"%s","ý"); If I then look at s in debug the first location is NULL...
  • sprintf width problem
    I'm having trouble with the C51 sprintf formats. sprintf does not pad the output according to the width field sprintf(rs_send_line,"%2d:%2d -> ",hrs,(int)(m-(hrs*60))); sprintf(&rs_send_line[9],...
  • PROBLEMS WITH SPRINTF
    Hi I'm trying to convert a double number in scinetific notation into a string of 4 characters. I have written this code char result[4]; double corr; sprintf(result,"e", corr); corr is a decimal...