mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	core: remove C-versions of (v)format_string()
Only users of the std::string versions are left. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									0c7c96402c
								
							
						
					
					
						commit
						71f3189a31
					
				
					 2 changed files with 0 additions and 24 deletions
				
			
		|  | @ -140,25 +140,6 @@ void put_vformat(struct membuffer *b, const char *fmt, va_list args) | |||
| 	} | ||||
| } | ||||
| 
 | ||||
| /* Silly helper using membuffer */ | ||||
| char *vformat_string(const char *fmt, va_list args) | ||||
| { | ||||
| 	struct membuffer mb; | ||||
| 	put_vformat(&mb, fmt, args); | ||||
| 	return detach_cstring(&mb); | ||||
| } | ||||
| 
 | ||||
| char *format_string(const char *fmt, ...) | ||||
| { | ||||
| 	va_list args; | ||||
| 	char *result; | ||||
| 
 | ||||
| 	va_start(args, fmt); | ||||
| 	result = vformat_string(fmt, args); | ||||
| 	va_end(args); | ||||
| 	return result; | ||||
| } | ||||
| 
 | ||||
| void put_format(struct membuffer *b, const char *fmt, ...) | ||||
| { | ||||
| 	va_list args; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue