comp.c

来自「SecuDe是一个由安全应用程序接口组成,对验证机制、证件处理、PEM、X.40」· C语言 代码 · 共 38 行

C
38
字号
/* *  SecuDE Release 4.1 (GMD) *//******************************************************************** * Copyright (C) 1991, GMD. All rights reserved.                    * *                                                                  * *                                                                  * *                         NOTICE                                   * *                                                                  * *    Acquisition, use, and distribution of this module             * *    and related materials are subject to restrictions             * *    mentioned in each volume of the documentation.                * *                                                                  * ********************************************************************/ #include	"arithmetic.h"/*	sign(A-B)	*/int	_comp(Ap,Bp)register L_NUMBER *Ap, *Bp;{	register int	s = *Ap - *Bp;		if (s>0)	return 1;	if (s<0)	return -1;		{	register L_NUMBER	*stop = Ap;				Ap += lngofln(Ap); Bp += lngofln(Bp);		for ( ; Ap>stop; Ap--, Bp-- ) {			if (*Ap > *Bp)	return 1;			if (*Ap < *Bp)	return -1;		}	}	return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?