// Get strings length with out using the build in length function.
// By Ben 03/10/2018

#include <iostream>
using namespace std;

int myLen(char *s){
	int len = 0;
	//While the string does not contain a null char
	while (*s !='\0'){
		//INC length
		len++;
		//Move s along
		s++;
	}
	return len;
}

int main(){
	char *s0 = "Hello World";
	std::cout << "Length of Hello World is : " << myLen(s0) << endl;

	system("pause");
	return 0;
}