[Asterisk-cvs] asterisk/include/asterisk utils.h,NONE,1.1
citats at lists.digium.com
citats at lists.digium.com
Mon May 3 00:23:21 CDT 2004
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv19165/include/asterisk
Added Files:
utils.h
Log Message:
Add include/asterisk/utils.h file. Which includes the function
ast_strlen_zero, which should be used instead of strlen to check if a
string has length or doesn't have length.
--- NEW FILE: utils.h ---
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Utility functions
*
* Copyright (C) 2004, Digium
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#ifndef _ASTERISK_UTIL_H
#define _ASTERISK_UTIL_H
static inline int ast_strlen_zero(const char *s)
{
return (*s == '\0');
}
#endif
More information about the svn-commits
mailing list