Example #1
0
static void cr8BTKLong(ai_obj *akey, uint32 *ksize, uchar *btkey) {
	uchar sflag;
	ulong l = akey->l;
	*ksize  = cr8Lcol(l, &sflag, &l);
	writeULongCol(&btkey, sflag, l);
}
Example #2
0
int cr8LcolFromStr(cli *c, char  *start, uint32 len, uchar *sflag, ulong *col) {
    if (!len) { *sflag = 0; *col = 0;       return 0; }
    if (!strToULong(c, start, len, col, 0)) return -1;
    return cr8Lcol(*col, sflag, col);
}