Thread: returning a string from a function

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    221

    returning a string from a function

    possible?

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Yes.

  3. #3
    Registered User
    Join Date
    Dec 2002
    Posts
    221
    how?

  4. #4
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    You could return a string in many ways. For example:

    Code:
    char *create_string (...)
    {
        char *str;
    
        // create a string
    
        return str;
    }
    
    
    bool create_string (char *string)
    {
        bool retval = false;
        // create the string
    
       return retval;
    }

  5. #5
    Registered User
    Join Date
    Dec 2002
    Posts
    221
    hey, do u have any way that i can contact u online?
    if you dont mind, that is... i have a few questions

  6. #6
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Well, you currently have contact, isn't it? I suggest you post your questions here, so that also others can help you and learn from your questions.

  7. #7
    Registered User
    Join Date
    Dec 2002
    Posts
    221
    actually, i kinda wanted to ask you about my other question.. highlighting a menu
    if u dont mind, can u check it out please

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Returning a string from function
    By badmantel in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2003, 12:17 PM
  4. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 11:06 PM
  5. returning a string from a function
    By itld in forum Linux Programming
    Replies: 5
    Last Post: 12-03-2001, 01:35 AM