Search:

Type: Posts; User: bobv

Search: Search took 0.01 seconds.

  1. KC, Great, better late than never....another...

    KC,

    Great, better late than never....another winner!!!
    So simple when you know how. I was just a couple chars away.
    Hate when that happens.

    Many thanks; have a great Thanksgiving,
    Bob
  2. Anduril, Most Excellent! I tried your first...

    Anduril,
    Most Excellent! I tried your first example "input+4" but didn't use a "**" I just used a single '*', no wonder it didn't work. What you say makes perfect sense too I needed to specify a...
  3. Thanks guys I think this is what I was looking...

    Thanks guys I think this is what I was looking for. Touche to both of you!!
  4. Anduril, I'm not trying to change the contents...

    Anduril,

    I'm not trying to change the contents of a string or other value. I'm trying to pass back a pointer to the 4th char (&str+4) in the string w/o using the return statement.

    Thanks for...
  5. Tater, Good suggestions. I'll try and put...

    Tater,

    Good suggestions. I'll try and put something together using these functions.

    Bob
  6. anduril462, Thanks for your reply. I understand...

    anduril462, Thanks for your reply. I understand your code however this is not the problem I'm trying to solve. I'm trying to pass a string address (pointer) back through a member in the function...
  7. CommonTater, Thanks for taking the time to put...

    CommonTater,

    Thanks for taking the time to put this together. Very nice solution but only if you can be assured the format of the input string is correct. Unfortunately I can't, as I said above...
  8. Any example? When you know how everything seems...

    Any example? When you know how everything seems easy, but if you don't well... I know it's a u32 and what the values are but getting it there is another story, at leaset for me. The fact that the...
  9. Thanks you all for your help. The example I...

    Thanks you all for your help.

    The example I gave is not what I'm trying to do, just a simplified example of the problem. I

    'm trying to break up the user inputed IP address (ex: 192.16.1.10)...
  10. If that's the only way then I wil try that. BTW,...

    If that's the only way then I wil try that. BTW, what viz?

    I used to do a lot of C coding back in the Kernighan & Ritchie days and swear I did this ... just can't seem to remember how and it's...
  11. How do you return a value and pointer from a function?

    I know how to use return to pass back a value and/or a pointer but would like to do both.



    //EX: Not sure I declared ptrStrgPlus4 correctly to have it be
    // a pointer to strg+4 (ie '.') on...
Results 1 to 11 of 11