MCPcopy Create free account
hub / github.com/devkitPro/libctru / __name_cmp

Function __name_cmp

libctru/source/env.c:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25extern void* __service_ptr;
26
27static int __name_cmp(const char* a, const char* b) {
28 u32 i;
29
30 for(i=0; i<8; i++) {
31 if(a[i] != b[i])
32 return 1;
33 if(a[i] == '\0')
34 return 0;
35 }
36
37 return 0;
38}
39
40Handle __attribute__((weak)) envGetHandle(const char* name) {
41 if(__service_ptr == NULL)

Callers 1

envGetHandleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected