J
Jack
#include "string.h"
#include <iostream>
using namespace std;
int main()
{
char buf[1024] = "This is a test.";
int len = 1024;
bzero(buf, len);
cout<<"buf::"<<buf<<endl;
}
The error is:
line 8: Error: The function "bzero" must have a prototype.
1 Error(s) detected.
I tried to compile it on Solaris SUN.
Thanks.
#include <iostream>
using namespace std;
int main()
{
char buf[1024] = "This is a test.";
int len = 1024;
bzero(buf, len);
cout<<"buf::"<<buf<<endl;
}
The error is:
line 8: Error: The function "bzero" must have a prototype.
1 Error(s) detected.
I tried to compile it on Solaris SUN.
Thanks.