'Is it possible to specify a string consisting of a number of `^` characters for scanf?

In a C-scanf format, how do I specify, that I want a character ^?

"%[^]" does not work with GNU scanf, because ^ at start has the negation meaning.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source