ooutils.c

来自「一个非常美妙的proxy。功能强大。基于sip的协议。如果还要的话」· C语言 代码 · 共 41 行

C
41
字号
/* * Copyright (C) 2004-2005 by Objective Systems, Inc. * * This software is furnished under an open source license and may be  * used and copied only in accordance with the terms of this license.  * The text of the license may generally be found in the root  * directory of this installation in the COPYING file.  It  * can also be viewed online at the following URL: * *   http://www.obj-sys.com/open/license.html * * Any redistributions of this file including modified versions must  * maintain this copyright notice. * *****************************************************************************/#include "ooUtils.h"const char* ooUtilsGetText (OOUINT32 idx, const char** table, size_t tabsiz){   return (idx < tabsiz) ? table[idx] : "?";}OOBOOL ooUtilsIsStrEmpty (const char* str){   return (str == NULL || *str =='\0');}OOBOOL ooIsDigitString(const char* str) {   int i = 0;   if(str == NULL || *str =='\0') { return FALSE; }   while(*(str+i) != '\0')   {      if(!isdigit(*(str+i))) { return FALSE; }      i++;   }   return TRUE;}

⌨️ 快捷键说明

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