Search:

Type: Posts; User: rubu

Search: Search took 0.01 seconds.

  1. Thanks so much for helping kindly I am...

    Thanks so much for helping kindly

    I am commenting on the code so I could try to understand....I do not have C compiler right now so I can't test things.....hope you will understand and help me......
  2. extracting a string from string when a string exist

    Hi....

    I want to do following......... I have a string... "service-name-you" I want to get string "you" extracted only if the "service" is the first item before the first "-"


    following is the...
  3. Replies
    5
    Views
    1,225

    Salem again...thanks..... But I would like to...

    Salem again...thanks.....
    But I would like to move the


    int getglobalvar (void)
    {
    return(globalvar);
    }

    to C++ and make it a C++ function....
  4. Replies
    5
    Views
    1,225

    Thanks Salem, Could you please kindly....show...

    Thanks Salem,

    Could you please kindly....show me the flow with this change? It will help me to learn and understand...

    Thanks much.
  5. Replies
    5
    Views
    1,225

    How do I do this.....

    I am a newbie so please be easy on me

    I have C file...which has following for an example.



    extern int globalvar;

    void init()
    {
  6. Replies
    15
    Views
    17,352

    Got it....Thanks so much....again thanks so much...

    Got it....Thanks so much....again thanks so much for being patient...
  7. Replies
    15
    Views
    17,352

    So when returning the pointer to array.....how...

    So when returning the pointer to array.....how important is doing a malloc? is it really needed?
  8. Replies
    15
    Views
    17,352

    OK I was in the understanding of memset also...

    OK I was in the understanding of memset also allocate memory while setting to specific value....

    So in your way.....

    I believe when I call the function....in some where in the main....I need to...
  9. Replies
    15
    Views
    17,352

    Quzah, Thanks for being patient...... I do...

    Quzah,

    Thanks for being patient......

    I do not see much difference between what you suggest and what I am doing....why can't I use memset instead of malloc?
  10. Replies
    15
    Views
    17,352

    returning int array from a function

    All...I have following code snippet...I am trying to return a int array from the function.....I am new to C. This causes compile errors could someone please provide me some help.....

    Thanks much...
Results 1 to 10 of 10