summaryrefslogtreecommitdiffstats
path: root/Gui/skin/cut.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/skin/cut.c')
-rw-r--r--Gui/skin/cut.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Gui/skin/cut.c b/Gui/skin/cut.c
index 5a36f4564c..cdb56c3d3d 100644
--- a/Gui/skin/cut.c
+++ b/Gui/skin/cut.c
@@ -14,8 +14,23 @@ void cutItem( char * in,char * out,char sep,int num )
out[c]=0;
}
+int cutItemToInt( char * in,char sep,int num )
+{
+ char tmp[512];
+ cutItem( in,tmp,sep,num );
+ return atoi( tmp );
+}
+
+float cutItemToFloat( char * in,char sep,int num )
+{
+ char tmp[512];
+ cutItem( in,tmp,sep,num );
+ return atof( tmp );
+}
+
void cutChunk( char * in,char * s1 )
{
cutItem( in,s1,'=',0 );
memmove( in,strchr( in,'=' )+1,strlen( in ) - strlen( s1 ) );
}
+