#include #include void genlic(unsigned char *name, unsigned char *company, unsigned char *lic) { int i, len, sum1=0xe, sum2=0x2e; char ser1[10]="*1*632*85", ser2[9]="0829****"; char buf1[10]; long int sl1; char tch1; for (i=0; i<5; i++) sum1 += name[i]; itoa(sum1, buf1, 10); ser1[6] = buf1[0]; ser1[2] = buf1[1]; ser1[0] = buf1[2]; sscanf(ser1, "%lu", &sl1); sprintf(ser1, "%lX", sl1); tch1 = ser1[0]; ser1[0] = ser1[1]; ser1[1] = ser1[2]; ser1[2] = tch1; len = strlen(name); for (i=0; i "); gets(name); printf("Enter Company > "); gets(company); genlic(name, company, lic); printf("\nName : %s\n", name); printf("Company : %s\n", company); printf("License : %s\n", lic); printf("\nEnter the above info into your Allvue registration dialog.\n"); printf("NOTE: strings are case-sensitive\n"); }