pike.git/
src/
error.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-11-05
2004-11-05 03:34:28 by Martin Stjernholm <mast@lysator.liu.se>
c55191dff41f6391220e3685a1ddf90c5c01a2ea (
13
lines) (+
12
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added %x to Pike_vsnprintf.
Rev: src/error.c:1.137
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: error.c,v 1.
136
2004/
10
/
30
11
:
41
:
08
mast Exp $
+
|| $Id: error.c,v 1.
137
2004/
11
/
05
03
:
34
:
28
mast Exp $
*/ #define NO_PIKE_SHORTHAND
266:
} break;
+
case 'x':
+
{
+
char buf[12];
+
int pos=0;
+
sprintf(buf, "%x", va_arg(args, int));
+
while( --size>0 && buf[pos]!=0 )
+
str++[0]=buf[pos++];
+
}
+
break;
+
case '%': str++[0]='%'; size--;