printf.c (7978:9700266d52f4) printf.c (7992:fabe6a2d9c5e)
1/*****************************************************************************
2
3 Copyright � 1993, 1994 Digital Equipment Corporation,
4 Maynard, Massachusetts.
5
6 All Rights Reserved
7
8Permission to use, copy, modify, and distribute this software and its

--- 205 unchanged lines hidden (view full) ---

214 }
215 else switch (c) {
216 case '\000': return(--f);
217 case '%': PutChar('%');
218 return(f);
219 case '-': leftjust = TRUE;
220 break;
221 case 'c': {
1/*****************************************************************************
2
3 Copyright � 1993, 1994 Digital Equipment Corporation,
4 Maynard, Massachusetts.
5
6 All Rights Reserved
7
8Permission to use, copy, modify, and distribute this software and its

--- 205 unchanged lines hidden (view full) ---

214 }
215 else switch (c) {
216 case '\000': return(--f);
217 case '%': PutChar('%');
218 return(f);
219 case '-': leftjust = TRUE;
220 break;
221 case 'c': {
222 char a = va_arg(*ap, char);
222 char a = va_arg(*ap, char *);
223
224 if (leftjust) PutChar(a & 0x7f);
225 if (fieldwidth > 0) PutRepChar(fill, fieldwidth - 1);
226 if (!leftjust) PutChar(a & 0x7f);
227 return(f);
228 }
229 case 's': {
230 const char *a = va_arg(*ap, const char *);

--- 76 unchanged lines hidden ---
223
224 if (leftjust) PutChar(a & 0x7f);
225 if (fieldwidth > 0) PutRepChar(fill, fieldwidth - 1);
226 if (!leftjust) PutChar(a & 0x7f);
227 return(f);
228 }
229 case 's': {
230 const char *a = va_arg(*ap, const char *);

--- 76 unchanged lines hidden ---