--- In [email protected], ayyaz <ayya...@...> wrote:
> 
> scanf("%[\^n] ",text);  should be scanf("%[^\n] ",text);
> 
> The carrot tells it take everything except a new line.

Perhaps you meant carat, or more accurately caret. Perhaps
you even meant caron. But it's actually none of those. It's
a circumflex.

> The backslash goes after the carrot.

More precisely, it goes before the n.

-- 
Peter

Reply via email to