intputs(char*str){int i =0;while(str[i]!='\0'){putchar(str[i]);
i++;}putchar('\0');return i;}
2.3> strcpy
/**
* strcpy - Copy a %NUL terminated string
* @dest: Where to copy the string to
* @src: Where to copy the string from
*/char*strcpy(char*dest,constchar*src){int i =0;while(src[i]!='\0'){
dest[i]= src[i];
i++}
dest[i]='\0';return dest;}
2.4> strcpy _linux
/**
* strcpy - Copy a %NUL terminated string
* @dest: Where to copy the string to
* @src: Where to copy the string from
*/char*strcpy(char*dest,constchar*src){char*tmp = dest;while((*dest++=*src++)!='\0')/* nothing */;return tmp;}
2.5> strcat
/**
* strcat - Append one %NUL-terminated string to another
* @dest: The string to be appended to
* @src: The string to append to it
*/char*strcat(char*dest,constchar*src){int i =0;int j =0;while(dest[i]!='\0'){
i++}while(src[j]!='\0'){
dest[i+j]= src[j];
j++;}
dest[i+j]='\0';return dest;}
2.6> strcat _linux
/**
* strcat - Append one %NUL-terminated string to another
* @dest: The string to be appended to
* @src: The string to append to it
*/char*strcat(char*dest,constchar*src){char*tmp = dest;while(*dest)
dest++;while((*dest++=*src++)!='\0');return tmp;}
2.7> strcmp
/**
* strcmp - Compare two strings
* @cs: One string
* @ct: Another string
*///CS: H O S T \0//Ct: H O S T F \0//intstrcmp(constchar*cs,constchar*ct){int i =0;while(cs[i]!='\0'){if(cs[i]> ct[i]){return1;}elseif(cs[i]== ct[i]){
i++}else{return-1;}}if(ct[i]!='\0'){return-1;}else{return0;}}
2.8> strcmp _linux
/**
* strcmp - Compare two strings
* @cs: One string
* @ct: Another string
*/intstrcmp(constchar*cs,constchar*ct){unsignedchar c1, c2;while(1){
c1 =*cs++;
c2 =*ct++;if(c1 != c2)return c1 < c2 ?-1:1;if(!c1)break;}return0;}