Is there a function to get the width of the command screen(the size of the screen buffer)?
if yes what is it?thx in advanced
Printable View
Is there a function to get the width of the command screen(the size of the screen buffer)?
if yes what is it?thx in advanced
You need to say which OS and compiler you're using.
Standard C knows nothing of such things.
windows, MVS.net 2003
cos I have this function that aligns text to the centre, but I need to know the size of the screen buffer of the user.
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
Not the answer, but if you go look up those functions on http://msdn.microsoft.com, then you'll find what you're looking for.
OK cheers
I would suggest you narrow your seach to GetConsoleScreenBufferInfo.