MCPcopy Create free account
hub / github.com/Neo-Maoku/SearchAvailableExe / validate_bit

Function validate_bit

SearchAvailableExe/SearchAvailableExe.cpp:115–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static int validate_bit(opt_arg* arg, void* args) {
116 char* str = (char*)args;
117
118 arg->u32 = 0;
119 if (str == NULL) return 0;
120
121 arg->u32 = atoi(str);
122
123 if (arg->u32 != 32 && arg->u32 != 64 && arg->u32 != 96)
124 return 0;
125 else
126 return 1;
127}
128
129static void usage(void) {
130 printf("usage: SearchAvailableExe [options]\n");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected