Skip to content

Instantly share code, notes, and snippets.

@good5dog5
Created March 15, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save good5dog5/f02e9acbf20a5c855bb3 to your computer and use it in GitHub Desktop.
Save good5dog5/f02e9acbf20a5c855bb3 to your computer and use it in GitHub Desktop.
#define MKCL(n, d) {.name=#n, .fptr=n ## _command, .desc=d}
cmdlist cl[]={
MKCL(ls, "List directory"),
MKCL(man, "Show the manual of the command"),
MKCL(cat, "Concatenate files and print on the stdout"),
MKCL(ps, "Report a snapshot of the current processes"),
MKCL(host, "Run command on host"),
MKCL(mmtest, "heap memory allocation test"),
MKCL(help, "help"),
MKCL(test, "test new function"),
MKCL(, ""),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment