sync C programs