Linux.com

endersali

endersali

  • Linux.com Member
  • Posts: 2
  • Member Since: 14 Dec 12
  • Last Logged In: 14 Dec 12

Latest Posts

Posted by
Topic
Post Preview
Posted
  • endersali
    RE: sa vaux le coup ou pas ?
    void fork1() { int ret; ret = fork(); if (ret == 0) printf(“\n [%d] Hello from child”, getpid()); else printf(“\n [%d] Hello from parent”, getpid()); } int main() { fork1(); return 0; } line 1: syntax error near unexpected token `(' line 1: `void fork1() {' Can you please help?
    Link to this post 14 Dec 12

    void fork1() {
    int ret;
    ret = fork();
    if (ret == 0)
    printf(“\n [%d] Hello from child”, getpid());
    else
    printf(“\n [%d] Hello from parent”, getpid());
    }
    int main() {
    fork1();
    return 0;
    }


    line 1: syntax error near unexpected token `('
    line 1: `void fork1() {'


    Can you please help?

  • endersali
    RE: sa vaux le coup ou pas ?
    void fork1() { int ret; ret = fork(); if (ret == 0) printf(“\n [%d] Hello from child”, getpid()); else printf(“\n [%d] Hello from parent”, getpid()); } int main() { fork1(); return 0; } Can you please help?
    Link to this post 14 Dec 12

    void fork1() {
    int ret;
    ret = fork();
    if (ret == 0)
    printf(“\n [%d] Hello from child”, getpid());
    else
    printf(“\n [%d] Hello from parent”, getpid());
    }
    int main() {
    fork1();
    return 0;
    }


    Can you please help?

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board