axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/src/common AxisUtils.h AxisUtils.cpp
Date Sat, 11 Oct 2003 14:44:48 GMT
roshan      2003/10/11 07:44:48

  Modified:    c/src/common AxisUtils.h AxisUtils.cpp
  Log:
  added a new methods to clear the contents of char arrays
  
  Revision  Changes    Path
  1.8       +4 -0      ws-axis/c/src/common/AxisUtils.h
  
  Index: AxisUtils.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/AxisUtils.h,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AxisUtils.h	10 Oct 2003 05:13:13 -0000	1.7
  +++ AxisUtils.h	11 Oct 2003 14:44:48 -0000	1.8
  @@ -77,6 +77,10 @@
   	friend class TypeMapping;
   	friend class URIMapping;
   public:
  +	/*
  +	 *Clears the content of passed character array
  +	 */
  +	static int clearArray(char* arrCh, int iSize);
   	static void Initialize();
   	static const AxisXMLCh* ToAxisXMLCh(const AxisChar* pch);
   	AxisUtils();
  
  
  
  1.8       +9 -0      ws-axis/c/src/common/AxisUtils.cpp
  
  Index: AxisUtils.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/AxisUtils.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AxisUtils.cpp	10 Oct 2003 05:13:13 -0000	1.7
  +++ AxisUtils.cpp	11 Oct 2003 14:44:48 -0000	1.8
  @@ -106,3 +106,12 @@
   	return pch;
   }
   
  +
  +int AxisUtils::clearArray(char *arrCh, int iSize)
  +{
  +	for(int iTmp=0; iTmp<iSize; iTmp++) {
  +		arrCh[iTmp] = '\0';
  +	}
  +
  +	return SUCCESS;
  +}
  
  
  

Mime
View raw message