#include <stdio.h> #include <string.h> #include <stdbool.h> bool at_work(const char *yes) { return strcmp(yes, "yes") == 0; } void work(bool yes) { if (yes) puts("I'm working"); else puts("I'm \"working\""); } int main(int argc, const char *argv[]) { if (at_work(argv[1])) work(true); else work(false); return 0; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15129 | zachwhaley | Add practice directory |