28.10.2014 Views

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Synergy</strong> <strong>User</strong> <strong>Manual</strong> <strong>and</strong> <strong>Tutorial</strong><br />

RETURNS:<br />

char *tpvalue;<br />

int tpsize<br />

cnf_dzap()<br />

PURPOSE:<br />

PARAMETERS:<br />

RETURNS:<br />

Removes all local CID's tuples<br />

None<br />

1 if success or an error code otherwise<br />

cnf_eot(id)<br />

PURPOSE: Marks the end of tasks<br />

PARAMETERS: int id - ?<br />

RETURNS: 1 if success or an error code otherwise<br />

cnf_error(errno)<br />

PURPOSE:<br />

PARAMETERS:<br />

RETURNS:<br />

Prints to the user the kind of error encountered<br />

int errno<br />

1 always<br />

cnf_fflush(id)<br />

PURPOSE:<br />

PARAMETERS:<br />

RETURNS:<br />

Flushes a file<br />

int id – index into cnf_map to get channel #/ptr<br />

1 if success or 0 if error<br />

cnf_fgetc(id, buf)<br />

PURPOSE: Read a char from file into buffer<br />

PARAMETERS: int id – index into cnf_map to get channel #/ptr<br />

char *buf; – address of receiving buffer<br />

RETURNS: 0 on EOF otherwise 1<br />

int cnf_fgets(id, buf, bufsiz)<br />

202

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!