Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions  Download package

SAPDB_string.h File Reference


Detailed Description

C String and memset,memcpy, memmove definitions (replaces string.h).

***************************************************************************

Author:
JoergM
C Strings in SAPDB have enforced limited length of maximum 2 GigaByte (SAPDB_strlen is casted to return an SAPDB_Int4...)

No strdup() equivalent wanted!

-------------------------------------------------------------------------

copyright: (c) 2000-2004 SAP AG

========== licence begin GPL Copyright (c) 2000-2005 SAP AG

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 the Free Software Foundation; either version 2 of the License, or (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 along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ========== licence end

Definition in file SAPDB_string.h.

#include <string.h>

Go to the source code of this file.

Defines

#define SAPDB_memcpy(dst_, src_, n_)   memcpy((dst_), (src_), (n_))
#define SAPDB_memmove(dst_, src_, n_)   memmove((dst_), (src_), (n_))
#define SAPDB_memset(s_, c_, n_)   memset((s_),(c_),(n_))
#define SAPDB_strcasecmp(s1_, s2_)   strcasecmp( (s1_), (s2_) )
#define SAPDB_strcat(dest_, src_)   strcat( (dest_), (src_) )
#define SAPDB_strchr(s_, c_)   strchr( (s_), (c_) )
#define SAPDB_strcmp(s1_, s2_)   strcmp( (s1_), (s2_) )
#define SAPDB_strcpy(dest_, src_)   strcpy( (dest_), (src_) )
#define SAPDB_strlen(s_)   ((SAPDB_Int4)strlen( s_ ))
#define SAPDB_strncasecmp(s1_, s2_, n_)   strncasecmp( (s1_), (s2_), (n_) )
#define SAPDB_strncat(dest_, src_, n_)   strncat( (dest_), (src_), (n_) )
#define SAPDB_strncat_zero_terminated(dest_, src_, n_)
#define SAPDB_strncmp(s1_, s2_, n_)   strncmp( (s1_), (s2_), (n_) )
#define SAPDB_strncpy(dest_, src_, n_)   strncpy( (dest_), (src_), (n_) )
#define SAPDB_strncpy_zero_terminated(dest_, src_, n_)
#define SAPDB_strrchr(s_, c_)   strrchr( (s_), (c_) )

Functions

void SAPDB_strncat_zero_terminated (char *dest, char const *source, size_t n)
 append atmost n_ characters from string src_ into dest_ with enforced zero termination
void SAPDB_strncpy_zero_terminated (char *dest, char const *source, size_t n)
 copy atmost n_ characters from string src_ into dest_ with enforced zero termination


Generated by  Doxygen 1.6.0   Back to index