Mohamed Anees

%f format specifier not working ....

Discussion created by Mohamed Anees on Apr 25, 2009
Latest reply on Apr 26, 2009 by Rich Testardi

Hi,

 

I am using the below code to print characters onto hyperterminal. 

 

int printf(const char *format, ...) {
  char outbuf[MAXLINE];
  int i;
  va_list args;
  va_start(args, format);
  i = vsprintf(outbuf, format, args);
  va_end(args);
  WriteString(outbuf);
  return i;
}

I am not able to get output for %f and %c format specfier. %d format specifier works fine. Please suggest....

 

Thank you...

Outcomes