If you have to find whether there is a NULL.
You could do soemthing like the following..
char buffer[1000000] = {'\0'};
....
bool detected = strlen(buffer) < 1000000;
I think that initialization is not a costly affair.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 29
Threaded View
|
Click Here to Expand Forum to Full Width |