When I wrote program and compilated by C everything was OK but when I wrote and compilated my program by C++ I heve got this error:
implicit declaration of function ‘int bzero(…)’
in line:
bzero(&newtio, sizeof(newtio));
What is wrong???
When I wrote program and compilated by C everything was OK but when I wrote and compilated my program by C++ I heve got this error:
implicit declaration of function ‘int bzero(…)’
in line:
bzero(&newtio, sizeof(newtio));
What is wrong???
C++ compiler is more strict than C Compiler.
check with the type of parameters you are passing in bzero function call.
you need to include <strings.h> I think
Thanks to Dheerajs and cburgess for yours help but I enclosed in my program string.h and strings.h
use memset(…)
I used memet it’s ok. Thanks to everybody for help