MCPcopy Index your code
hub / github.com/ZeroIntensity/pointers.py / _

Function _

tests/test_bindings.py:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30@test("c strings")
31def _():
32 ptr = c_malloc(2)
33 strcpy(ptr, "a")
34 assert ~cast(ptr, bytes) == b"a"
35 c_free(ptr)
36
37 assert strlen(b"test") == 4
38
39
40@test("format strings")

Callers

nothing calls this directly

Calls 15

c_mallocFunction · 0.90
strcpyFunction · 0.90
castFunction · 0.90
c_freeFunction · 0.90
strlenFunction · 0.90
sprintfFunction · 0.90
signalFunction · 0.90
divFunction · 0.90
to_struct_ptrFunction · 0.90
to_c_ptrFunction · 0.90
to_voidpFunction · 0.90
toupperFunction · 0.90

Tested by

no test coverage detected