Rev 1408 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1408 | Rev 1409 | ||
---|---|---|---|
Line 126... | Line 126... | ||
126 | const char *oldfmt; |
126 | const char *oldfmt; |
127 | char *s1, buf[1025]; |
127 | char *s1, buf[1025]; |
Line 128... | Line 128... | ||
128 | 128 | ||
129 | while (c = *fmt++) { |
129 | while (c = *fmt++) { |
130 | if (c != '%') { |
- | |
131 | #ifdef CPM |
130 | if (c != '%') { |
132 | if (c == '\n') { |
131 | if (c == '\n') { |
133 | if (putc('\r', stream) == EOF) |
132 | if (putc('\r', stream) == EOF) |
134 | return nrchars ? -nrchars : -1; |
133 | return nrchars ? -nrchars : -1; |
135 | nrchars++; |
134 | nrchars++; |
136 | } |
- | |
137 | #endif |
135 | } |
138 | if (putc(c, stream) == EOF) |
136 | if (putc(c, stream) == EOF) |
139 | return nrchars ? -nrchars : -1; |
137 | return nrchars ? -nrchars : -1; |
140 | nrchars++; |
138 | nrchars++; |
141 | continue; |
139 | continue; |
Line 182... | Line 180... | ||
182 | case 'L': flags |= FL_LONGDOUBLE; fmt++; break; |
180 | case 'L': flags |= FL_LONGDOUBLE; fmt++; break; |
183 | } |
181 | } |
Line 184... | Line 182... | ||
184 | 182 | ||
185 | switch (c = *fmt++) { |
183 | switch (c = *fmt++) { |
186 | default: |
- | |
187 | #ifdef CPM |
184 | default: |
188 | if (c == '\n') { |
185 | if (c == '\n') { |
189 | if (putc('\r', stream) == EOF) |
186 | if (putc('\r', stream) == EOF) |
190 | return nrchars ? -nrchars : -1; |
187 | return nrchars ? -nrchars : -1; |
191 | nrchars++; |
188 | nrchars++; |
192 | } |
- | |
193 | #endif |
189 | } |
194 | if (putc(c, stream) == EOF) |
190 | if (putc(c, stream) == EOF) |
195 | return nrchars ? -nrchars : -1; |
191 | return nrchars ? -nrchars : -1; |
196 | nrchars++; |
192 | nrchars++; |
197 | continue; |
193 | continue; |