Search:

Type: Posts; User: prashant8809

Search: Search took 0.00 seconds.

  1. Sorry, I dont think I framed my question...

    Sorry, I dont think I framed my question correctly.

    Suppose I have char *a[] = "a","b","c","d","e","\0"

    Now in my program I do this a[] = "a",NULL,"c",NULL,"e","\0"

    So that I can break one...
  2. How to deallocate memory of a pointer to a character array

    Hi I have allocated memory to a pointer to a character array using malloc



    tmp_argv_pipe[index] = (char *)malloc(sizeof(char) * strlen(yytext) + 1);


    Later on in this array, I put NULL...
  3. Replies
    3
    Views
    21,847

    Thanks for the reply. I understood what I need to...

    Thanks for the reply. I understood what I need to do regarding pipes.

    Another quick question. I am creating a unix like shell and need to implement pipes. Till now I have used array of char...
  4. Replies
    3
    Views
    21,847

    Implementing pipe in my own unix shell

    Hi,

    I am trying to implement pipes in my own unix shell. Below is the code.



    #include <fcntl.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <stdio.h>
  5. Input and output redirection together !!

    Hi,

    I am trying to implement redirections. I am able to get the result for input and output redirection, individually. However, when I do both together I see not o/p.


    file_input - Input file...
  6. Replies
    1
    Views
    976

    Problem with array of strings !!

    Hi,

    Please excuse me for asking such a trivial question. I am very new to C programming and it would be very helpful if someone answers my question.

    Here is my program ...


    ...
Results 1 to 6 of 6