shithub: scc

ref: 2f307820bc3dab666974d065749aef367982f420
dir: /tests/cc/execute/0205-cpparg.c/

View raw version
#define TOLOWER(c) ((((unsigned)c) - 'A' < 26) ? ((c) | 32) : (c))

int
main(void)
{
	char c, *s = "Bla";

	c = TOLOWER((unsigned char)*s);
	if (c != 'b')
		return 1;

	return 0;
}