/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <string.h>

void test(int v)
{
   int i;
   char s[17];
   sprintf(s,"%d",v);
   if((strlen(s)%2)==1) strcat(s,"f");
   for(i=0;i<strlen(s);i=i+2)
   {
     if(i>0) printf(",");
     printf("%c%c",s[i+1],s[i]);
   }
   printf("\n");
}

int main()
{
   test(72536283);
   test(546378942);
   return 0;
}
