OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [lib/] [printf.c] - Diff between revs 393 and 485

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 393 Rev 485
Line 661... Line 661...
 error:
 error:
  return ret;// remove this error stuff (((Cyg_OutputStream *) stream)->get_error() ? EOF : ret);
  return ret;// remove this error stuff (((Cyg_OutputStream *) stream)->get_error() ? EOF : ret);
  /* NOTREACHED */
  /* NOTREACHED */
}
}
 
 
 
int
 
sprintf(char* str, const char *fmt, ...)
 
{
 
        va_list args;
 
 
 
        va_start(args, fmt);
 
 
 
        return vfnprintf(str, 1024, fmt, args);
 
 
 
}
 
 
#include "printf.h"
#include "printf.h"
 
 
// Actual printf function we call, with static buffer of 512 bytes
// Actual printf function we call, with static buffer of 512 bytes
char PRINTFBUFFER[PRINTFBUFFER_SIZE]; // Declare a global printf buffer
char PRINTFBUFFER[PRINTFBUFFER_SIZE]; // Declare a global printf buffer
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.