‘strlen’ was not declared in this scope | ‘strcpy’ was not declared in this scope

when we are migrating source code from windows on linux machine g++ prints the following errors

error: ‘strlen’ was not declared in this scope

error: ‘strcpy’ was not declared in this scope

we have to  add #include <cstring>

now, strlen() and strcpy() will work correctly