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
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.
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.
OK cheers
Code:int val=0; while(val==0) printf("\a");
I would suggest you narrow your seach to GetConsoleScreenBufferInfo.