16 lines
		
	
	
		
			384 B
		
	
	
	
		
			C
		
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			384 B
		
	
	
	
		
			C
		
	
	
| #ifndef C_HELPER_H
 | |
| #define C_HELPER_H
 | |
| #include <stdlib.h>
 | |
| #include <string.h>
 | |
| /**
 | |
| * C++ version 0.4 char* style "itoa":
 | |
| * Written by Lukás Chmela
 | |
| * Released under GPLv3.
 | |
| */
 | |
| char* itoa(int value, char* result, int base);
 | |
| #if __APPLE__ | _WIN32 | _WIN64
 | |
| char * strndup (const char *s, size_t n);
 | |
| #endif
 | |
| void ftoi(float input_float, int precision, long *integer, long *decimal);
 | |
| #endif
 |