about the strcpy,strlen functions in cpp

Discussion in 'C' started by saivasavi, Oct 16, 2007.

  1. saivasavi

    saivasavi New Member

    Joined:
    Oct 15, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Could you please tell me how to write the functions of strcopy,string length,string append,string delete without using strlen,strcpy() functions?
     
  2. seeguna

    seeguna New Member

    Joined:
    Jun 20, 2007
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Technical Consultant
    Location:
    Chennai
    Send ur coding........
    I will correct the errors....

    Tips to solve ur problem is "In the input character array ,count the no.of characters one by one, copy it character by character........"
     
  3. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    You can't delete a string unless it's dynamically allocated, you can only make it empty.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice