summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/snprintf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.espie2005-10-101-1/+2
| | | | | Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Move the va_start()/va_end() pair such that it directly backets the callmillert2005-05-281-3/+3
| | | | | to vfprintf() like the rest of the *printf functions. This is clearer and makes the error case in asprintf() simpler. From Andrey Matveev.
* Change internals of FILE: reuse the unget buffer field to access anespie2005-04-301-1/+4
| | | | | | | | | | | | | | | | extended attribute data structure (pimpl idiom). Idea taken from citrus. Much discussion with deraadt@, otto@, millert@... This is the least disruptive way to extend FILE, since its size can't really change without this being a flag day. So the size doesn't change. Actual additions to the structure will come in separate steps, since this change is nasty enough on its own. Tests by otto@ and others, careful reading of code by otto@ and millert@. This is definitely a major bump, and has been checked to not impact a full ports build.
* make sure the implementation matches the prototype..pat2005-03-311-2/+2
| | | | | | char const * -> const char * ok otto@ deraadt@
* Apply change from vsnprintf.c rev. 1.5. Use a single charactermillert2004-04-101-5/+10
| | | | | buffer for the size==0 case. Stdio internals do not deal correctly with zero size buffer and NULL pointer. From torek@bsdi.com; Ok henning@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-17/+1
|
* Oops, missed a 0 vs. '\0'millert1998-01-121-2/+2
|
* Based on some FreeBSD changes:millert1998-01-121-5/+9
| | | | | | For *s*printf, set f._file to -1 like the comments in stdio.h say. Use '\0', not 0, where appropriate. Don't error out on size of '0' for v?snprintf().
* Return -1, not EOF for size < 1. XPG4.2 specifies the return valuemillert1997-11-291-2/+3
| | | | | should be < 1. While EOF is currently defined as -1 it is bad form to assume this.
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-4/+4
|
* Fix RCS idstholo1996-08-191-6/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+81