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

Subversion Repositories or1k

[/] [or1k/] [branches/] [newlib/] [newlib/] [newlib/] [libc/] [stdio/] [vsprintf.c] - Diff between revs 39 and 56

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

Rev 39 Rev 56
Line 47... Line 47...
  ret = vfprintf (&f, fmt, ap);
  ret = vfprintf (&f, fmt, ap);
  *f._p = 0;
  *f._p = 0;
  return ret;
  return ret;
}
}
 
 
 No newline at end of file
 No newline at end of file
 
int
 
vsprintf_r (ptr, str, fmt, ap)
 
     struct _reent *ptr;
 
     char *str;
 
     char _CONST *fmt;
 
     va_list ap;
 
{
 
  int ret;
 
  FILE f;
 
 
 
  f._flags = __SWR | __SSTR;
 
  f._bf._base = f._p = (unsigned char *) str;
 
  f._bf._size = f._w = INT_MAX;
 
  f._data = ptr;
 
  ret = vfprintf (&f, fmt, ap);
 
  *f._p = 0;
 
  return ret;
 
}
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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