diff options
author | Tim Potter <tpot@samba.org> | 1999-07-09 01:59:22 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 1999-07-09 01:59:22 +0000 |
commit | 60e08bd35e78bff3a395090c1d41bb16da0252a5 (patch) | |
tree | 189c05f08ea64ba3b937714ec48e7878d2521167 /source3/include/includes.h | |
parent | 820c38221126392955eb221c72aa02189fa91c7e (diff) | |
download | samba-60e08bd35e78bff3a395090c1d41bb16da0252a5.tar.gz samba-60e08bd35e78bff3a395090c1d41bb16da0252a5.tar.bz2 samba-60e08bd35e78bff3a395090c1d41bb16da0252a5.zip |
Hived off string routines into a separate file.
(This used to be commit 4929513f1376d72409c1e5a39f723d1d2bd81dc0)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r-- | source3/include/includes.h | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index b880689600..1a37eb20c1 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -579,25 +579,9 @@ extern int errno; /***** automatically generated prototypes *****/ #include "proto.h" -#ifdef strcpy -#undef strcpy -#endif /* strcpy */ -#define strcpy(dest,src) __ERROR__XX__NEVER_USE_STRCPY___; - -#ifdef strcat -#undef strcat -#endif /* strcat */ -#define strcat(dest,src) __ERROR__XX__NEVER_USE_STRCAT___; - -#ifdef sprintf -#undef sprintf -#endif /* sprintf */ -#define sprintf __ERROR__XX__NEVER_USE_SPRINTF__; - -#define pstrcpy(d,s) safe_strcpy((d),(s),sizeof(pstring)-1) -#define pstrcat(d,s) safe_strcat((d),(s),sizeof(pstring)-1) -#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1) -#define fstrcat(d,s) safe_strcat((d),(s),sizeof(fstring)-1) +/* String routines */ + +#include "safe_string.h" #ifdef __COMPAR_FN_T #define QSORT_CAST (__compar_fn_t) |