save(char *filename,Value *ptr)
save(const char *filename,Value *ptr)
save(char *filename,Value *ptr){    int fd,size;    fd = open(filename,O_WRONLY|O_BINARY|O_CREAT,0666);    if (fd < 0) {	perror(filename);	return CKR_FUNCTION_FAILED;    }    size = write(fd,ptr->data,ptr->size);    if (size < 0) {	perror(filename);	return CKR_FUNCTION_FAILED;    } else if (size != ptr->size) {	fprintf(stderr,"%s: only wrote %d bytes, need to write %d bytes\n",			filename,size,ptr->size);	return CKR_FUNCTION_FAILED;    }    close(fd);    return CKR_OK;}