0

Just learned that there is no pre-defined graphics library for C. I want to get the resolution of the current monitor screen.

1 Answers1

2

That is simply not possible to answer as a "pure C" question; there is no "screen" in C, i.e. the language and its standard library never assumes that there is any kind of screen-like output device available.

You need to settle for a suitable library for a portable solution, or figure out how to talk directly to your target environment.

unwind
  • 391,730
  • 64
  • 469
  • 606