Subj : Re: Hatch To : Vincent Coen From : Michael Dillon Date : Wed Jan 26 2022 17:09:00 VC> The original code looks like this : VC> -- VC> for (i = 0; i < strlen(hatch.Desc); i++) { VC> if (hatch.Desc[i] != '%') { VC> fprintf(Tf, "%c", hatch.Desc[i]); VC> } else { VC> i++; VC> memset(&tmp, 0, sizeof(tmp)); VC> if (isdigit(hatch.Desc[i])) VC> tmp[0] = hatch.Desc[i]; VC> if (isdigit(hatch.Desc[i+1])) { VC> tmp[1] = hatch.Desc[i+1]; VC> i++; VC> } VC> fprintf(Tf, "%c", de->d_name[atoi(tmp) -1]); VC> } VC> } VC> -- VC> Vincent VC> --- Mageia Linux v8 X64/Mbse v1.0.7.24/GoldED+/LNX 1.1.5-b20180707 VC> * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1) This code actually just translates the Desc line looking for %NN entries, replacing the NN with the character in the file name itself. Otherwise it just copies the next character in the description. .... Heisenberg may have slept here. ___ MultiMail/Win v0.52 --- Maximus/2 3.01 * Origin: Outpost BBS (1:18/200) .