Michael Jerris 3abb7730b2 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
2006-12-21 03:57:49 +00:00

16 lines
385 B
C

#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