NetBSD/lib/libc/stdio
jtc 615fb07b15 The C Standard says that printf's format string is a multi-byte
character string.  NA1 says that the 99 characters required by the
Standard have representations in the initial state which are one byte
long and do not alter the state.

Thus we can safely break apart the format string with mbtowc() until
we reach a '%' character, and the process format directive characters
one by one.

We really shouldn't be using mbtowc(), rather mbrtowc() (which takes a
mbstate-t argument) but we don't have the NA1 functions implemented
yet.  This is safe, because even when we do we're not likely to
support multi-byte character encodings that use shift states.
1995-05-02 19:52:41 +00:00
..
Makefile.inc mktemp.c belongs here, not gen/Makefile.inc 1995-02-25 17:06:28 +00:00
clrerr.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fclose.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
fclose.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fdopen.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
feof.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
ferror.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
ferror.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fflush.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
fflush.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fgetc.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fgetln.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
fgetln.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fgetpos.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fgets.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
fgets.c change second arg of fgets() from size_t to int 1995-03-25 02:50:04 +00:00
fileno.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
findfp.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
flags.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
floatio.h Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fopen.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
fopen.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fprintf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fpurge.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fputc.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fputs.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
fputs.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fread.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
fread.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
freopen.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fscanf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fseek.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
fseek.c flush so that the offset will be correct on streams opened in 1995-03-05 06:56:09 +00:00
fsetpos.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
ftell.c Removed const qualifier from ftell's FILE * argument. It's not ANSI, 1995-03-22 18:17:24 +00:00
funopen.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
funopen.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fvwrite.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fvwrite.h Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fwalk.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
fwrite.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
getc.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
getc.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
getchar.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
gets.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
getw.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
glue.h Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
local.h Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
makebuf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
mktemp.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
mktemp.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
perror.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
perror.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
printf.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
printf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
putc.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
putc.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
putchar.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
puts.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
putw.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
refill.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
remove.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
remove.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
rewind.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
rget.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
scanf.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
scanf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
setbuf.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
setbuf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
setbuffer.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
setvbuf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
snprintf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
sprintf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
sscanf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
stdio.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
stdio.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
tempnam.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
tmpfile.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
tmpnam.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
tmpnam.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
ungetc.3 Merged with 4.4lite. 1995-02-02 01:15:33 +00:00
ungetc.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
vfprintf.c The C Standard says that printf's format string is a multi-byte 1995-05-02 19:52:41 +00:00
vfscanf.c Added "long long" support %ll{d,x,o,i}. 1995-03-22 00:56:55 +00:00
vprintf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
vscanf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
vsnprintf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
vsprintf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
vsscanf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
wbuf.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00
wsetup.c Merged with 4.4lite. 1995-02-02 02:09:03 +00:00