#include <iostream>
using namespace std;
int mystrlen(const char* s);
int main(void)
{
const char* str1 = "Hello";
const char* str2 = "Hello";
int result = strcmp(str1, str2);
if (result == 0)
{
printf("Strings are equal \n");
}
else
{
printf("Strings are not equal \n");
}
return 0;
}
int mystrlen(const char* s)
{
int i = 0;
while (s[i++] != '\0')
;
return i - 1;
}