#include <stdio.h>
#include <string.h>

void stralign(char* dest1,char* dest2,char sfill)
{
	char buffer[256]={'\0'};
	int len1=strlen(dest1);
	int len2=strlen(dest2);
	if (len1==len2) return;
	int bc=0;
	int i=0;
	if(len1>len2) 
	{
		i=0;
		strcpy(buffer,dest2);
		bc=len1-len2;
		while(bc>0)
		{
			*dest2++=sfill;
			bc--;
		}
		while(buffer[i]!='\0') *dest2++=buffer[i++];
	}
	else 
	{
		i=0;
		strcpy(buffer,dest1);
		bc=len2-len1; 
		while(bc>0)
		{
			*dest1++=sfill;
			bc--;
		}
		while(buffer[i]!='\0') *dest1++=buffer[i++];
	}
}

int main()
{
	char t1[256]={'\0'};
	char t2[256]={'\0'};
	strcpy(t1,"1259896");
	strcpy(t2,"123289324125");
	stralign(t1,t2,'0');
	printf("$1-:%s\n$2-:%s\n",t1,t2);
	return 0;
}