/********************************************************** * File: xmem.h * Created at Tue Mar 20 22:37:42 2001 by lev // lev@serebryakov.spb.ru * * $Id: xstr.h,v 1.2 2001/03/20 19:52:09 lev Exp $ **********************************************************/ #ifndef __XSTR_H__ #define __XSTR_H__ #ifndef HAVE_STRLCPY char *xstrcpy(char *dst, char *src, size_t size); #else /* Remeber about "comma operation" */ # define xstrcpy(dst,src,size) (strlcpy((dst),(src),(size)),(dst)) #endif #ifndef HAVE_STRLCAT char *xstrcat(char *dst, char *src, size_t size); #else /* Remeber about "comma operation" */ # define xstrcat(dst,src,size) (strlcat((dst),(src),(size)),(dst)) #endif #endif