1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 87 unchanged lines hidden (view full) --- 96 octal = true; 97 break; 98 case 'D': 99 case 'd': 100 sign = true; 101 break; 102 case 'P': 103 format = true; |
104 M5_FALLTHROUGH; |
105 case 'p': 106 hexnum = true; 107 break; 108 } 109 110 switch (*p) { 111 case 'D': 112 case 'd': --- 141 unchanged lines hidden (view full) --- 254 size_t len = strcspn(p, "%\n\r\0"); 255 out.write(p, len); 256 p += len; 257 } 258 } 259 } 260 261} |