Knowledge Base
Home C

String handling functions

Category: C | Comments (2)

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 .


Next: Base Address of the String


Comments

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
Comment posted by: vidvik on 2008-01-24T00:09:52
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
Comment posted by: steph47 on 2008-02-15T23:23:58


Post Comment


Members Please Login

Name:


Email:
 
(Optional. Used for Notification)

Title:

 
Comment:


Validation Code:
 <=>  (Enter this code in text box)
Subscribe





Daily Email Updates

Get Latest Knowledge Base Updates delivered directly to your Inbox...

Enter your email address:

Latest Knowledge Base Updates
 

C Tutorials

 

Related Tutorials