examples/DS401_Slave_Gui/tools.cpp
changeset 295 25ff2fadff89
parent 294 d5493fe07e79
child 296 03f2b8b8cb0b
--- a/examples/DS401_Slave_Gui/tools.cpp	Sun Sep 30 22:38:58 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-#include <iostream>
-#include <wx/wxprec.h>
-#include <wx/wx.h>
-#include <wx/textctrl.h>
-#include <iostream>
-#include "tools.h"
-
- void 	IntToString( int i, char* in_pszbuffer )
-{
-	// permet de copier un int dans la chaƮne buffer
-	sprintf( in_pszbuffer, "%d", i);
-}
-
-char	*wxstr_to_charbuf(wxString	s)
-{
-	int		i = 0;
-	char	*str = NULL;
-	
-	str = (char*) malloc((s.Length() + 1) * sizeof(char));
- 	for(i=0; i<s.Length(); i++)
-  	  {
-   		str[i] = s.GetChar(i);
-  	  }
- 	str[s.Length()] = '\0';
- 	return(str);
-}
-
-void	charbuf_free(char	*s)
-{
-	free(s);
-}