emoji

emoji list in a C header
git clone https://noulin.net/git/emoji.git
Log | Files | Refs | README | LICENSE

example.c (687B)


      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   s = getG(nerdList, rtChar,"[20].[1]");
     30   logI(s);
     31 
     32   freeEmList();
     33 }
     34 // vim: set expandtab ts=2 sw=2: