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...
Type: Posts; User: prashant8809
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...
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...
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...
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>
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...
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 ...
...