mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add xmlrpc-c 1.03.14 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3772 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
15
libs/xmlrpc-c/lib/util/include/sstring.h
Normal file
15
libs/xmlrpc-c/lib/util/include/sstring.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef SSTRING_H_INCLUDED
|
||||
#define SSTRING_H_INCLUDED
|
||||
|
||||
/* This file contains string functions that are cognizant of the
|
||||
declared size of the destination data structure.
|
||||
*/
|
||||
|
||||
|
||||
/* Copy string pointed by B to array A with size checking. */
|
||||
#define SSTRCPY(A,B) \
|
||||
(strncpy((A), (B), sizeof(A)), *((A)+sizeof(A)-1) = '\0')
|
||||
#define SSTRCMP(A,B) \
|
||||
(strncmp((A), (B), sizeof(A)))
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user