Remove unused function string_to_argv
This commit is contained in:
		
							parent
							
								
									0c49b49254
								
							
						
					
					
						commit
						3f5257f285
					
				
							
								
								
									
										20
									
								
								src/utils.c
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								src/utils.c
									
									
									
									
									
								
							| @ -93,26 +93,6 @@ char *string_append(char *a, const char *b, const char *sep) | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| char **string_to_argv(const char *s) | ||||
| { | ||||
|         char *str = strdup(s); | ||||
|         char **argv = NULL; | ||||
|         char *p = strtok (str, " "); | ||||
|         int n_spaces = 0; | ||||
| 
 | ||||
|         while (p) { | ||||
|                 argv = realloc (argv, sizeof (char*) * ++n_spaces); | ||||
|                 argv[n_spaces-1] = g_strdup(p); | ||||
|                 p = strtok (NULL, " "); | ||||
|         } | ||||
|         argv = realloc (argv, sizeof (char*) * (n_spaces+1)); | ||||
|         argv[n_spaces] = NULL; | ||||
| 
 | ||||
|         free(str); | ||||
| 
 | ||||
|         return argv; | ||||
| } | ||||
| 
 | ||||
| void string_strip_delimited(char *str, char a, char b) | ||||
| { | ||||
|         int iread=-1, iwrite=0, copen=0; | ||||
|  | ||||
| @ -15,8 +15,6 @@ char *string_replace(const char *needle, const char *replacement, | ||||
| 
 | ||||
| char *string_append(char *a, const char *b, const char *sep); | ||||
| 
 | ||||
| char **string_to_argv(const char *s); | ||||
| 
 | ||||
| /* strip content between two delimiter characters (inplace) */ | ||||
| void string_strip_delimited(char *str, char a, char b); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nikos Tsipinakis
						Nikos Tsipinakis