Basic read rules in C