MCPcopy Create free account
hub / github.com/acl-dev/acl / main

Function main

lib_acl_cpp/samples/md5/main.cpp:105–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int main(int argc, char* argv[])
106{
107 int ch;
108 acl::string filepath, plain, key;
109
110 while ((ch = getopt(argc, argv, "hf:k:s:")) > 0) {
111 switch (ch) {
112 case 'h':
113 usage(argv[0]);
114 return 0;
115 case 'f':
116 filepath = optarg;
117 break;
118 case 'k':
119 key = optarg;
120 break;
121 case 's':
122 plain = optarg;
123 break;
124 default:
125 break;
126 }
127 }
128
129 base_test();
130
131 if (!filepath.empty()) {
132 check_file(filepath);
133 }
134
135 if (!plain.empty()) {
136 check_string(key, plain);
137 } else {
138 printf("plain empty!\r\n");
139 }
140
141#if defined(_WIN32) || defined(_WIN64)
142 getchar();
143#endif
144 return 0;
145}

Callers

nothing calls this directly

Calls 6

base_testFunction · 0.85
check_fileFunction · 0.85
check_stringFunction · 0.85
usageFunction · 0.70
getoptFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…