Hi,
Assume I have the following basic application :
(removed all code that is irrelevant)
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
What do I want to do ? I want to call this application from another C application (which in itself is not a problem - execl does the trick just fine); but I also need to provide the input to 'buf' and send a return, so it displays my input on the screen
How can I do this ?
thanks
--------------------------------------------------------------------
--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
Assume I have the following basic application :
(removed all code that is irrelevant)
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
Code:
int main()
{
char buf[1024];
gets(buf);
printf("Buffer : %s",buf);
}
What do I want to do ? I want to call this application from another C application (which in itself is not a problem - execl does the trick just fine); but I also need to provide the input to 'buf' and send a return, so it displays my input on the screen
How can I do this ?
thanks
--------------------------------------------------------------------
--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------