Hi man,
Here is the thing.
Code:
#include <stdio.h>
#include<stdlib.h>
int main()
{

			int iNum;
			char str[10];
			printf("Please enter a positive integer, or press 0 to quit\n\n");
			scanf("%d",&iNum);

			while ( iNum != 0)
			{
				itoa(iNum,str,10);
				//call my function here//pass str as parameter.get return value in a pointer or char array.								
				printf("Enter another integer or 0 to quit\n\n");
				scanf("%d",&iNum);
				
			}
		

}