Hello,

I am learning c++ and planning to learn fltk programming as it has been
hailed as one of the fine libs to program with but as my goal is to
learn unix programming so I'm not sure how fltk manages system call.
I want to display output of a simple fork call, how fltk manages it?

#include <unistd.h>
int main()
{
pid_t pid;
const char *name;
pid = fork();
if (pid == 0)
{
name = "I am the child";
write(1, name, 15);
write(1, "\n", 2);
}
else
{
name = "I am the parent";
write(1, name, 16);
write(1, "\n", 2);
}
return 0;
}

I want to display the output of this code on a fltk based label or
text box. Is it possible?
Thank you.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to