PrintError();
SECU_PrintError("Error", "PR_Write failed");
WriteBuf(char *inFile, SECItem *item){    int ret;    PRFileDesc* fd = PR_Open(inFile, PR_WRONLY|PR_CREATE_FILE, 0x200);    if (NULL == fd) {	PrintError();	return -1;    }    ret = PR_Write(fd,item->data,item->len);    if (ret < 0) {	PrintError();	return -1;    }    PR_Close(fd);    return 0;}