check_octstr.c
资源名称:gateway-1.2.1 [点击查看]
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:1k
源码类别:
手机WAP编程
开发平台:
WINDOWS
- /*
- * check_octstr.c - checking of octet string functions
- */
- #include <string.h>
- #include "gwlib/gwlib.h"
- static int signof(int n)
- {
- if (n < 0)
- return -1;
- if (n == 0)
- return 0;
- return 1;
- }
- static void check_comparisons(void)
- {
- static const char *tab[] = {
- "",
- "a",
- "ab",
- "abc",
- "abc邃