comparison Gui/skin/cut.c @ 1852:58dd326fcc4a

fix xshape, mixer, fullscreen, etc
author pontscho
date Tue, 04 Sep 2001 15:21:00 +0000
parents d237c5d4b216
children
comparison
equal deleted inserted replaced
1851:2ce062156969 1852:58dd326fcc4a
12 if ( n >= num && in[i+1] == sep ) { out[c]=0; return; } 12 if ( n >= num && in[i+1] == sep ) { out[c]=0; return; }
13 } 13 }
14 out[c]=0; 14 out[c]=0;
15 } 15 }
16 16
17 int cutItemToInt( char * in,char sep,int num )
18 {
19 char tmp[512];
20 cutItem( in,tmp,sep,num );
21 return atoi( tmp );
22 }
23
24 float cutItemToFloat( char * in,char sep,int num )
25 {
26 char tmp[512];
27 cutItem( in,tmp,sep,num );
28 return atof( tmp );
29 }
30
17 void cutChunk( char * in,char * s1 ) 31 void cutChunk( char * in,char * s1 )
18 { 32 {
19 cutItem( in,s1,'=',0 ); 33 cutItem( in,s1,'=',0 );
20 memmove( in,strchr( in,'=' )+1,strlen( in ) - strlen( s1 ) ); 34 memmove( in,strchr( in,'=' )+1,strlen( in ) - strlen( s1 ) );
21 } 35 }
36