Ibrahim Haddad wrote:
> I am using a ploting tool that comes with the LASSPTools (xplot).
> The usual way to run it is from the command shell using:
>
> % axis -lt "Distribution" -lx "Staff" -ly "Month" < cocomo-log | xplot
You don't need any of the quotes here, unless the arguments contain
spaces.
> but I need to make a system call to it from my program. The problem is the
> quotations.. If i use the following:
>
> void
> xplotCB ( Widget w, Widget clientData, XtPointer callData)
> {
> system
> ("axis -lt "Distribution" -lx "Staff" -ly "Month" < cocomo-log | xplot");
> }
>
> the compiler will complain about the nested ".
You have to use a backslash, i.e.
system("axis -lt \"Distribution\" -lx \"Staff\" -ly \"Month\" < cocomo-log | xplot");
Alternatively, you could use single quotes, i.e.
system ("axis -lt 'Distribution' -lx 'Staff' -ly 'Month' < cocomo-log | xplot");
--
Glynn Clements <[EMAIL PROTECTED]>