| chkstr |
(double chksum) |
yoix.io |
| |
Returns a string that formats the supplied
chksum
in the format normally associated with BSD or SYSV checksum values.
Any double value can be supplied, but it only makes sense to use
this built-in when the value has been generated as the result of
BSD or SYSV checksum activity.
| |
| Example: |
The following script computes a SYSV checksum value for the
Yoix home page and prints the result to standard output as
a double and as a string formatted by
chkstr.
import yoix.io.*;
import yoix.stdio.*;
URL page = {
String name = "http://www.research.att.com/sw/tools/yoix/";
int filters = SYSV;
int open = TRUE;
};
while(page.nextbuf);
printf("SYSV Checksum (double) = '%g'\n", page.checksum);
printf("SYSV Checksum (string) = '%s'\n", chkstr(page.checksum));
The result on standard output would look something like the following:
SYSV Checksum (double) = '609695'
SYSV Checksum (string) = '19871 9'
| | |
| Return: |
String
| | |
| See Also: |
File,
StringStream,
URL
|
|
Yoix is a registered trademark of AT&T Intellectual Property.
|