C Program for String operations without library functions


/*Program for String operations without library functions */
/* Program details:
   Program showing various operations on string without library functions
   functions implemented:
   (1) Length of a string
   (2) Reversing a string
   (3) Palindrome
   (4) Copy
   (5) String comparison
   (6) String concatenations
   (7) Searching a string
   (8) Counting of Words,Characters and Special characters
 */


Output :>

1)length of a string                                                            
2)Reverse the Given String                                                      
3)Check for palindrome                                                          
4)Copy                                                                          
5)String Comparison                                                             
6)String Concatenation                                                          
7)String Searching                                                              
8)Counting of Words,Characters & Special Characters                             
9)Quit                                                                          
          
Length of India=5
  
 press a Character !!!!!!                                                       
1)length of a string                                                            
2)Reverse the Given String                                                      
3)Check for palindrome                                                          
4)Copy                                                                          
5)String Comparison                                                             
6)String Concatenation                                                          
7)String Searching                                                              
8)Counting of Words,Characters & Special Characters                             
9)Quit                                                                          
                                                                                  
Enter Your Choice:2                                                             
                                                                                  
 Enter a String:Austria                                                         
                                                                                  
 Result=airtsuA                                                                 
                                                                                  
 press a Character !!!!!!                                                       
1)length of a string                                                            
2)Reverse the Given String                                                      
3)Check for palindrome                                                          
4)Copy                                                                          
5)String Comparison                                                             
6)String Concatenation                                                          
7)String Searching                                                              
8)Counting of Words,Characters & Special Characters                             
9)Quit                                                                          
                                                                                  
Enter Your Choice:3                                                             
                                                                                  
 Enter a String:madam                                                           
                                                                                  
A palindrome                                                                    
                                                                                  
1)length of a string    
2)Reverse the Given String
3)Check for palindrome                                                          
4)Copy                                                                          
5)String Comparison                                                             
6)String Concatenation                                                          
7)String Searching
8)Counting of Words,Characters & Special Characters                             
9)Quit                                                                          
                                                                                  
Enter Your Choice:5                                                             
                                                                                  
 Enter 1st string:India                                                         
                                                                                  
 Enter 2nd string:Asia                                                          
                                                                                  
1st>2nd                                                                         
                                                                                  
 press a Character !!!!!!                                                       
1)length of a string                                                            
2)Reverse the Given String                                                      
3)Check for palindrome                                                          
4)Copy                                                                          
5)String Comparison                                                             
6)String Concatenation                                                          
7)String Searching                                                              
8)Counting of Words,Characters & Special Characters                             
9)Quit                                                                          
                                                                                  
Enter Your Choice:8                                                             
                                                                                  
 Enter a string:India is my country                                             
                                                                                  
 no of characters=19                                                            
 no of special characters=0                                                     
 no of words=4                                                                  
                                                                                  
 press a Character !!!!!!                                                       
1)length of a string                                                            
2)Reverse the Given String                                                      
3)Check for palindrome                                                          
4)Copy                                                                          
5)String Comparison                                                             
6)String Concatenation                                                          
7)String Searching                                                              
8)Counting of Words,Characters & Special Characters                             
9)Quit                                                                          
                                                                                  
Enter Your Choice:9