Example #1
0
// Read the character at the specified cursor location.
//   Return -1 if not a line drawing char, or the offset into the "szBreakdown"
//   table if it is.
static int _fastcall GetLineChar( int nRow, int nColumn )
{
	char caCell[4];

	ReadCellStr( caCell, 1, nRow, nColumn );

	return ((( caCell[0] < 179 ) || ( caCell[0] > 218 )) ? -1 : caCell[0] - 179 );
}
Example #2
0
// Read the character at the specified cursor location.
//   Return -1 if not a line drawing char, or the offset into the "breakdown"
//   table if it is.
static int get_line_char( int row, int col )
{
	unsigned char cell[4];
	USHORT length = 2;

	(void)ReadCellStr( cell, length, row, col );

	return ((( cell[0] < 179 ) || ( cell[0] > 218 )) ? -1 : cell[0] - 179 );
}