Pages

Showing posts with label functions. Show all posts
Showing posts with label functions. Show all posts

Monday, April 7, 2014

How String Functions Work Part II

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!=
Read More..