GeekInterview.com
  I am new, Sign me up!
 
Home C
 

String handling functions

 
Category: C
Comments (3)


What is the string handling functions present in header file <string.h>?


There are number of string handling functions present in string.h. In other words if a programmer uses any of the function present in string.h then they must include the header file as


#include <string.h> 


Some of the functions present in <string.h> are given below:


strcat() - This function is used to con concatenate two strings.
strcmp() – This function is used to compare two strings.
strcpy() – This function h is used to copy the second string given as second parameter to this function into first string.
strlen() – This function is used to length of the string in other words the number of characters present in string .
strstr() – This function is to obtain the first occurrence of substring in a string .



Read Next: Base Address of the String



 

 

Comments


vidvik said:

  how r suppose to find all the function that are present in the given file.if possible can u suggest any approach to solve it sample code will also be useful
January 24, 2008, 12:09 am

steph47 said:

  well how can we perform the same function without the use of string functions ..coz i can find the lenght of the string without using strlen() but what about others
February 15, 2008, 11:23 pm

atul jain sagar said:

  these function information is only for theoritical knowledge;so i want complete discription of those(also with example and there extra properties in any areas)
September 26, 2008, 3:22 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact  

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape