hschumann2's picture
Upload folder using huggingface_hub
806d4b5 verified
Raw History Blame Contribute Delete
649 Bytes
01 public U8 *ACDWord(I64 i)
02 {//MAlloc dict word given rand offset.
03 I64 ch;
04 U8 *st=&acd.word_lst[i%acd.word_lst_size],
05 *src,*dst;
06 while (*st!=ACD_WORD_CHAR)
07 st--;
08 st=StrNew(st+1);
09 src=dst=st;
10 while (ch=*src++)
11 if (ch==',')
12 break;
13 else if (Bt(chars_bmp_word,ch))
14 *dst++=ch;
15 *dst=0;
16 return st;
17 }
18
19 U0 GodDict()
20 {
21 U8 *st;
22 I64 ch;
23 while (TRUE) {
24 ch=GetChar(,FALSE);
25 if (ch==CH_ESC||ch==CH_SHIFT_ESC)
26 break;
27 st=ACDWord(GetTSC);
28 "%s ",st;
29 Free(st);
30 }
31 "\n";
32 }
33
34 GodDict;