kleink
5a4d11e445
Upon an attempt to write to a stream that can't be written to, set errno
...
to EBADF.
1997-05-03 09:01:48 +00:00
kleink
f87eccf5b4
RCSid police
1997-04-02 12:50:23 +00:00
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
jtc
3b29974599
Added "long long" support %ll{d,x,o,i}.
1995-03-22 00:56:55 +00:00
cgd
708504beb1
when you have a pointer and want to assign to a quad, you must cast it
...
to long to quiet the compiler.
1995-02-25 07:06:38 +00:00
jtc
a40e8f9215
Fixed bug with '+' or ' ' flags and precision.
...
for example, printf("% 6.4d\n", 77) output one two many padding chars.
1995-01-25 11:20:41 +00:00
jtc
14c8a82a15
Fix zero padding when using the # format modifier.
1994-10-20 03:56:56 +00:00
jtc
c36fd69bc3
The decimal point character is locale specific.
1994-09-30 02:39:13 +00:00
mycroft
e9d5734eb6
Move FLOATING_POINT definition into Makefile.inc.
1994-09-19 04:43:02 +00:00
cgd
26fc33ba8d
_VA_LIST_ -> _BSD_VA_LIST_
1994-05-22 23:14:07 +00:00
jtc
86f54a1e24
Corrected and simplified floating point formatting.
...
Now conforms to ANSI C --- passes the fairly rigorous TCL "format.test".
1993-11-04 02:26:10 +00:00
jtc
5be26afce6
Trailing zeros should be printed with all floating point formats
...
except %g && %G --- ANSI X3.159-1989, Sect 7.9.6.1.
1993-11-03 19:32:01 +00:00
jtc
9c20f740a3
Declare rcsid strings so they are stored in text segment.
1993-08-26 00:43:03 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
b7c7310653
Make declarations match prototypes.
1993-07-12 02:09:31 +00:00
cgd
49693da854
update for better FP routines, from AT&T & elsewhere
1993-07-09 09:40:07 +00:00
mycroft
78ff981673
Fix error in last patch.
1993-04-18 09:21:15 +00:00
mycroft
f6eb9a54d8
Make arguments match prototypes.
1993-04-18 09:19:56 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00