This is the second part of the article How
String Functions (strinh.h) Work?
Here well be designing our own version of some other commonly used standard
library string manipulation function that we discussed in the article String
Manipulation Functions (string.h) II.
These will help increase your programming skills further.
mystrlwr():
// mystrlwr function
#include<iostream.h>
// -- FUNCTION PROTOTYPES --
char *mystrlwr(char *);
// -- ENDS --
void main()
{
char ch[]="C++ ProGramming123";
cout<<mystrlwr(ch);
}
char *mystrlwr(char *str)
{
char *temp;
temp=str;
while(*str!=
0 comments:
Post a Comment