💾 Archived View for gmi.noulin.net › gitRepositories › emoji › file › example.c.gmi captured on 2023-01-29 at 13:16:13. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
example.c (634B)
1 #! /usr/bin/env sheepy 2 /* or direct path to sheepy: #! /usr/local/bin/sheepy */ 3 4 /* Libsheepy documentation: http://spartatek.se/libsheepy/ */ 5 #include "libsheepyObject.h" 6 #include "emoji.h" 7 8 int argc; char **argv; 9 10 /* enable/disable logging */ 11 /* #undef pLog */ 12 /* #define pLog(...) */ 13 14 int main(int ARGC, char** ARGV) { 15 16 argc = ARGC; argv = ARGV; 17 18 initLibsheepy(ARGV[0]); 19 setLogMode(LOG_VOID); 20 21 logI(EM_FACE_WITH_ROLLING_EYES " " EM_BEER_MUG " " EM__PIRATE_FLAG " " EM_ALIEN_MONSTER " " EM_BOMB); 22 23 24 allocEmList(); 25 26 char *s = getG(emList, rtChar,"[0].[0]"); 27 logI(s); 28 29 freeEmList(); 30 } 31 // vim: set expandtab ts=2 sw=2: