On Wed 2008-10-15 12:39:40 UTC-0400, Bill Cunningham ([EMAIL PROTECTED]) wrote:
> I just wanted to mention that strclr() is not part of the C language. > Nor is conio.h. It is an extra header that defines old msdos style functions > that aren't standard C and are not part of the language proper. clrstr() is > an extra function. Bill, just to clarify, the original thread (or threads, as it's a FAQ) is referring to clrscr() - an abbreviation of Clear Screen. There is no portable way to clear the screen in C/C++. "Clearing" a nul-terminated STRING, however, is usually just a case of zeroing the first element: char s[100]; s[0] = '\0'; Or if you wanted to zero every element of the string, the portable way is to use memset(): memset(s, '\0', sizeof s);
