String routines in c, C/C++ Programming

Available in the string.h header file are the following routines  
   
  strcat(string1,string2);
 
This joins string2 to string1; care must be taken to allocate enough space for the answer 
 
  strchr(string,character);
 
This locates the position of the first occurrence of the character within the string and returns the address of that character i.e. a Find 
 
  strcmp(string1,string2);
 
This compares string2 to string1, if no difference if found a NULL character is returned else the address of the first non matching character.
 
  strcpy(string1,string2);
 
The copies the string2 into string1
 
  strlen(string);
 
Returns the length of the string 
 
  isalpha(character);
 
Returns a non-zero number if the character is a letter, otherwise a zero is returned
 
  isupper(character);
 
Returns a non-zero number if the character is uppercase, otherwise a zero is returned
 
  islower(character);
 
Returns a non-zero number if the character is lower case, otherwise a zero is returned
 
  isdigit(character);
 
Returns a non-zero number if the character is a digit i.e. 0-9, otherwise a zero is returned
 
  toupper(character);
 
Returns the upper case version of the character 
 
  tolower (character);
 
Returns the lower case version of the character

Posted Date: 4/16/2013 12:48:25 AM | Location : United States







Related Discussions:- String routines in c, Assignment Help, Ask Question on String routines in c, Get Answer, Expert's Help, String routines in c Discussions

Write discussion on String routines in c
Your posts are moderated
Related Questions
can we use const data member in static. member function with example.

what is local and global variable?give me some example to understand better

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

explain the function of five elements that are found on a motherboard#

A string is said to be "Beautiful"€, if it contains only non repetitive alphabets

FIT 3042 System Tools and Programming Languages Semester 1 2013 Assignment 1 An SDL video player for a custom video format Worth: 20% of final mark. Must be completed individually

What is copy constructor? describe the concept of copy constructor.

Armed with your function from above, we can do some interesting things. For instance, any pixel where the offsets are both zero is a pit (lower than all surrounding points) .

Q-What happens while a function throws an exception which was not specified through an exception specification for this function? A: Unexpected() is called, which, by default, w

I Want a answer for solving the big M method in the topic of simplex method...