#include <stdlib.h>int system (const char * string);system() executes a command specified in string by calling /bin/sh -c string, and returns after the command has been completed. During execution of the command, SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored.

You could possibly just echo it to the file ... there must be a better way though (grin)

]]>2005-09-19T00:57:20+00:002005-09-19T00:57:20+00:00http://linuxformat.com/forums/viewtopic.php?t=1188&p=8836#p8836foo2.c. The function foo2() prompts for who you want to say 'Hello' to, reads the string from stdin and returns that string.

The file foo2.c , which contains the defintion of the function foo2() needs to be generated by an invocation of makeFoo2.c file.