D
D
Dmitry2021-10-20 22:37:17
C++ / C#
Dmitry, 2021-10-20 22:37:17

Is it safe to use the printf function here?

I'm displaying colored text. For this I use ANSI codes.
printf("\e[0;31mRed");
Would such a record be appropriate from a security point of view? And if not, what should we replace it with?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wataru, 2021-10-20
@R3cive

Safely.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question