diff options
| author | david <[email protected]> | 2026-07-05 14:04:38 -0300 |
|---|---|---|
| committer | david <[email protected]> | 2026-07-05 14:04:38 -0300 |
| commit | 290ea5659f2555d920a6077f078e1c60746b049a (patch) | |
| tree | e1482b03e22ac1dab123636c8e236c8a4e760927 /petratc.c | |
| parent | 7b460110b139c0e8a488f695459c150a517d34b6 (diff) | |
| download | petratc-290ea5659f2555d920a6077f078e1c60746b049a.tar.gz petratc-290ea5659f2555d920a6077f078e1c60746b049a.zip | |
added more ratarts
Diffstat (limited to 'petratc.c')
| -rw-r--r-- | petratc.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -15,8 +15,13 @@ #define ratsave "%s/.local/share/rat/rat.txt" #endif - char ratart[] = - " .---.\n (\\./) \\.......-\n >' '< (__.'\"\"\"\"\"\"\n \" ` \" \"_"; + char *ratart[] = { + " .---.\n (\\./) \\.......-\n >' '< (__.'\"\"\"\"\"\"\n \" ` \" \"_", + " .---.\n-......./ (\\./)\n \"\"\"\"\"\"'.__) >' '<\n _\" \" ` \"", + " .---.\n (\\./) \\.......-\n >= =< (__.'\"\"\"\"\"\"\n \" ` \" \"_", + " .---.\n (\\./) \\.......-\n >0 0< (__.'\"\"\"\"\"\"\n \" ` \" \"_", + " .---.\n (\\./) \\.......-\n >^ ^< (__.'\"\"\"\"\"\"\n \" ` \" \"_", + }; char *messages[] = { "squeak!", @@ -93,10 +98,11 @@ void printrat(WINDOW *win){ werase(win); box(win, 0, 0); - + + int ratties = (sizeof(ratart)/sizeof(ratart[0])); int row = 1; char artcopy[256]; - strncpy(artcopy, ratart, sizeof(artcopy)); + strncpy(artcopy, ratart[rand() % ratties], sizeof(artcopy)); artcopy[sizeof(artcopy)-1] = '\0'; char *line = strtok(artcopy, "\n"); |
