mirror of
				https://github.com/rtlsdrblog/rtl-sdr-blog.git
				synced 2025-10-31 00:48:08 +01:00 
			
		
		
		
	rtl_fm: non-gnu str functions
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
		
				
					committed by
					
						 Steve Markgraf
						Steve Markgraf
					
				
			
			
				
	
			
			
			
						parent
						
							562fd7e8e3
						
					
				
				
					commit
					71b254a238
				
			| @@ -576,7 +576,8 @@ double atofs(char* f) | ||||
| { | ||||
| 	char* chop; | ||||
|         double suff = 1.0; | ||||
| 	chop = strndup(f, strlen(f)-1); | ||||
| 	chop = malloc((strlen(f)+1)*sizeof(char)); | ||||
| 	strncpy(chop, f, strlen(f)-1); | ||||
| 	switch (f[strlen(f)-1]) { | ||||
| 		case 'G': | ||||
| 			suff *= 1e3; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user