Author: Stan Eisenstat
Subject: Re: [Cs223] Handling escaped characters
Date: Sunday, 26 Jan 2020, 19:21:37
> Message Posted By: Unknown > > What does "handle escaped characters within char constants and strings > correctly" mean? Isn't our program supposed to ignore char constants and > strings? Then why can't we just ignore whatever is inside the char or > string, even if it contains an escaped sequence? Cxref should ignore a char constant or string, but an escaped character may affect where the char constant or string ends. For example, in the sixth line of the example in the specification (and in Hwk1/test.c) three ("\",", ",0); ",0); the second " is escaped. Thus it does not end the string that started with the first ". Instead that string ends at the third ". --Stan-PREV INDEX NEXT