HexEdit/CalcDlg.cpp
static const char *radix_string(int radix)
{
	static char buf[20];

	switch (radix)
	{
	case 16:
		return " [hex]";
	case 10:
		return " [dec]";
	case 8:
		return " [oct]";
	case 2:
		return " [bin]";
	default:
		sprintf(buf, " [radix %d]", radix);
		return buf;
	}
}
// Return a string representing a radix.
// IMPORTANT: returns a pointer to a static buffer so don't call this function
//            more than once in a single expression or save the returned pointer.

Return a string representing a radix.
IMPORTANT: returns a pointer to a static buffer so don't call this function
more than once in a single expression or save the returned pointer.
Return a string representing a radix . IMPORTANT : returns a pointer to a static buffer so don ' t call this function more than once in a single expression or save the returned pointer .
static const char *radix_string(int radix)
{
	static char buf[20];
	switch (radix)
	{
	case 16:
		return " [hex]";
	case 10:
		return " [dec]";
	case 8:
		return " [oct]";
	case 2:
		return " [bin]";
	default:
		sprintf(buf, " [radix %d]", radix);
		return buf;
	}
}
static const char * radix_string ( int radix ) { static char buf [ 20 ] ; switch ( radix ) { case 16 : return " " ; case 10 : return " " ; case 8 : return " " ; case 2 : return " " ; default : sprintf ( buf , " " , radix ) ; return buf ; } }
Return a string representing a radix.
Return a string representing a radix .