break;
}
++(status->current);
+ /* FIXME: The if clause means one-digit values do not get formatted */
if ( ( value / status->base ) != 0 )
{
int2base( (intmax_t)(value / status->base), status );
/* FIXME: This test not yet 32/64 bit agnostic */
TESTCASE( testprintf( buffer, 100, "%p", (void *)0xdeadbeef ) == 10 );
TESTCASE_SPRINTF( strcmp( buffer, "0xdeadbeef" ) == 0 );
+ TESTCASE( testprintf( buffer, 100, "%#6x", 1 ) == 6 );
+ TESTCASE_SPRINTF( strcmp( buffer, "0x0001" ) == 0 );
#ifndef TEST_CONVERSION_ONLY
{
int val1, val2;