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
This is a discussion on size of the screen within the C Programming forums, part of the General Programming Boards category; Is there a function to get the width of the command screen(the size of the screen buffer)? if yes what ...
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
Code:int val=0; while(val==0) printf("\a");
You need to say which OS and compiler you're using.
Standard C knows nothing of such things.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
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.
Code:int val=0; while(val==0) printf("\a");
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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
OK cheers
Code:int val=0; while(val==0) printf("\a");
I would suggest you narrow your seach to GetConsoleScreenBufferInfo.