C C++ String function strlwr()- string lower

<<Previous

Next >>





strcmp() - String Compare        strcpy() - String Copy        strcat() - String Concatenate



Strlwr() in C programming - Syntax

This function is used to convert the given string into lowercase. Finally it will return string as an output.

Syntax:
	char *strlwr(char *str);

Example program using Strlwr() in C programming

#include<stdio.h>

#include<string.h>


main()
{
  char src[]={’W’,‘E’,‘L’,‘C’, ‘O’,‘M’,‘E’};
  char result[];
  clrscr();
  printf(" The given string  is %s ",src);
  result = strlwr(src);
  printf(" The string after converting into lowercase letters is %s ",result);
  return(0);
}

Output:

The given string is WELCOME
The string after converting into lowercase letters is welcome

strlen() - String Length strncat() - String n Concatenation       

strncmp() - String n Compare        strncpy() - String n Copy






<< Previous

Next >>




strcat() - String Concatenation        strcmp() - String Compare


strcpy() - String Copy        strlen() - String Length




C C++ String function strlwr()- string lower

<<Previous

Next >>





strcmp() - String Compare        strcpy() - String Copy        strcat() - String Concatenate



Strlwr() in C programming - Syntax

This function is used to convert the given string into lowercase. Finally it will return string as an output.

Syntax:
	char *strlwr(char *str);

Example program using Strlwr() in C programming

#include<stdio.h>

#include<string.h>


main()
{
  char src[]={’W’,‘E’,‘L’,‘C’, ‘O’,‘M’,‘E’};
  char result[];
  clrscr();
  printf(" The given string  is %s ",src);
  result = strlwr(src);
  printf(" The string after converting into lowercase letters is %s ",result);
  return(0);
}

Output:

The given string is WELCOME
The string after converting into lowercase letters is welcome

strlen() - String Length strncat() - String n Concatenation       

strncmp() - String n Compare        strncpy() - String n Copy






<< Previous

Next >>






strncat() - String n Concatenation        strlwr() - String Lower       

strncmp() - String n Compare       strncpy() - String n Copy