2003-08-13 05:53:07 +04:00
/*
samba - - Unix SMB / CIFS implementation .
2004-11-03 03:17:12 +03:00
ugly string types from Samba3 . Will be removed
with glee when we finally don ' t use them .
2003-08-13 05:53:07 +04:00
Copyright ( C ) Andrew Tridgell 1992 - 2000
Copyright ( C ) John H Terpstra 1996 - 2000
Copyright ( C ) Luke Kenneth Casson Leighton 1996 - 2000
Copyright ( C ) Paul Ashton 1998 - 2000
Copyright ( C ) Martin Pool 2002
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-10 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2003-08-13 05:53:07 +04:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
2007-07-10 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2003-08-13 05:53:07 +04:00
*/
2005-02-10 08:09:35 +03:00
# ifndef _PSTRING
2006-02-23 15:44:21 +03:00
# define _PSTRING
2005-02-10 08:09:35 +03:00
2003-08-13 05:53:07 +04:00
# define PSTRING_LEN 1024
# define FSTRING_LEN 256
2007-08-27 22:32:51 +04:00
_DEPRECATED_ typedef char pstring [ PSTRING_LEN ] ;
_DEPRECATED_ typedef char fstring [ FSTRING_LEN ] ;
2003-08-13 05:53:07 +04:00
2007-08-27 22:32:51 +04:00
# define pstrcpy(d,s) safe_strcpy((d),(s),sizeof(pstring)-1)
# define pstrcat(d,s) safe_strcat((d),(s),sizeof(pstring)-1)
2006-02-23 15:44:21 +03:00
# define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1)
# define fstrcat(d,s) safe_strcat((d),(s),sizeof(fstring)-1)
2005-02-10 08:09:35 +03:00
# endif