numstring_conversions.c
char *_itoa(int n)
{
	unsigned int a = 0, c, d, nn, i = 0;
	char *str;

	nn = n;
	if (!nn)
		a = 1;
	for (; nn; a++, nn /= 10)
		;
	str = malloc(sizeof(char) * (a + 1));
	nn = n;
	if (n < 0)
	{
		nn = -n;
	}
	c = 999999999;
	d = 1000000000;
	for (a = 0; a <= 8; a++, c /= 10, d /= 10)
		if (nn > c)
			str[i++] = (nn / d % 10 + '0');
	str[i++] = (nn % 10 + '0');
	str[i] = 00;
	return (str);
}
/**
 * _itoa - turns an int into a string
 * @n: integer input
 * Return: converted string
 */
turns an int into a string
@n: integer input
Return: converted string
turns an int into a string @n : integer input Return : converted string
char *_itoa(int n)
{
	unsigned int a = 0, c, d, nn, i = 0;
	char *str;
	nn = n;
	if (!nn)
		a = 1;
	for (; nn; a++, nn /= 10)
		;
	str = malloc(sizeof(char) * (a + 1));
	nn = n;
	if (n < 0)
	{
		nn = -n;
	}
	c = 999999999;
	d = 1000000000;
	for (a = 0; a <= 8; a++, c /= 10, d /= 10)
		if (nn > c)
			str[i++] = (nn / d % 10 + '0');
	str[i++] = (nn % 10 + '0');
	str[i] = 00;
	return (str);
}
char * _itoa ( int n ) { unsigned int a = 0 , c , d , nn , i = 0 ; char * str ; nn = n ; if ( ! nn ) a = 1 ; for ( ; nn ; a ++ , nn /= 10 ) ; str = malloc ( sizeof ( char ) * ( a + 1 ) ) ; nn = n ; if ( n < 0 ) { nn = - n ; } c = 999999999 ; d = 1000000000 ; for ( a = 0 ; a <= 8 ; a ++ , c /= 10 , d /= 10 ) if ( nn > c ) str [ i ++ ] = ( nn / d % 10 + ' ' ) ; str [ i ++ ] = ( nn % 10 + ' ' ) ; str [ i ] = 00 ; return ( str ) ; }
_itoa - turns an int into a string
 @n: integer input
 Return: converted string
_itoa - turns an int into a string @n : integer input Return : converted string