> n = fprint(ctl, ts); > > succeeds, while > > n = write(ctl,ts,sizeof(ts)); > > fails.
sizeof(ts) == 4 or 8, depending on the arch. you wish strlen(ts). - erik
> n = fprint(ctl, ts); > > succeeds, while > > n = write(ctl,ts,sizeof(ts)); > > fails.
sizeof(ts) == 4 or 8, depending on the arch. you wish strlen(ts). - erik