mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	"Stealth whitespace" makes it harder to read diffs, and just generally cause unwanted weirdness. Do a source-wide pass to get rid of it.
		
			
				
	
	
		
			26 lines
		
	
	
		
			374 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			374 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * snprintf()
 | |
|  *
 | |
|  * Implement snprintf() in terms of vsnprintf()
 | |
|  */
 | |
| 
 | |
| #include "compiler.h"
 | |
| 
 | |
| #include <stdio.h>
 | |
| #include <stdlib.h>
 | |
| #include <stdarg.h>
 | |
| 
 | |
| #include "nasmlib.h"
 | |
| 
 | |
| int snprintf(char *str, size_t size, const char *format, ...)
 | |
| {
 | |
|     va_list ap;
 | |
|     int rv;
 | |
| 
 | |
|     va_start(ap, format);
 | |
|     rv = vsnprintf(str, size, format, ap);
 | |
|     va_end(ap);
 | |
| 
 | |
|     return rv;
 | |
| }
 |