User guide
E-69
PLI Access Routines
Returns
Non-zero if there was an error writing to the output file, 0 if successful.
Example D-29 Example of vcsSpEncodeOff
vcsSpStateID esp = vcsSpInitialize();
FILE *fp = fopen("protected.file", "w");
int write_error = 0; *
if (fp == NULL) exit(1);
vcsSpSetFilePtr(esp, fp);
if (vcsSpWriteString(esp, "This text will *not* be encrypted.
++write_error;
if (vcsSpEncodeOn(esp)) ++write_error;
if (vcsSpWriteString(esp, "This text *will* be encrypted.
++write_error;
if (vcsSpEncodeOff(esp)) ++write_error;
if (vcsSpWriteString(esp, "This text will *not* be encrypted.
++write_error;
fclose(fp);
vcsSpClose(esp);
Caution
You must call vcsSpInitialize() and vcsSpSetFilePtr()
before calling this routine.
vcsSpEncodeOn
Syntax
int vcsSpEncodeOn(vcsSpStateID esp)