String routines in c, C/C++ Programming

Assignment Help:

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


Related Discussions:- String routines in c

Client-server architecture Project, I need a client-server architecture pro...

I need a client-server architecture program for windows OS (minimum support: Win 7),. the agent program will run as a background process and perform certain tasks every X time, and

Program to display appropriate message-clients accounts, Question A ban...

Question A bank normally updates it's clients accounts at the end of each month.Of the two types of bank accounts:savings and checking, a client must maintain a minimum balance

Data Handling in computers, though the ascii is called 7-bit code. why do w...

though the ascii is called 7-bit code. why do we use 8-bits to represent a character?

I need plugin for amibroker using c++, I need plugin for amibroker using c+...

I need plugin for amibroker using c++ Project Description: Need to prepare plugin for amibroker using c++. Should be system bound after installing. System should show based o

Need a solution, Hello. I need a solution for this assignment. It is for C+...

Hello. I need a solution for this assignment. It is for C++ Language: Create a BusinessPartner class that contains a first name, company name, and a telephone number. Create a Con

Calculation, write a program to calculate the cuboid

write a program to calculate the cuboid

LOOPS, HOW CAN WE EASLY LEARN C++

HOW CAN WE EASLY LEARN C++

What are some ways try / catch / throw can develop software , Q: What are s...

Q: What are some ways try / catch / throw can develop software quality? A: By removing one of the reasons for if statements. The commonly utilized alternative to try / catch

Define how passing arrays to a function, Define How Passing Arrays to a Fun...

Define How Passing Arrays to a Function? A complete array can be passed to a function as an argument. The manner in which the array is passed be different from that of an ordin

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd