
Repair build_label so every byte of the name#id string it returns is read from memory the function still holds, then hand that one block to the caller.
build_label("core", 7)Expected result
[core#7]For your own tracking. Tests grade your code.
build_label("cache-line", -1024)Expected result
[cache-line#-1024]build_label("", 0)Expected result
[#0]build_label("friday-deploy", INT_MIN)Expected result
[friday-deploy#-2147483648]build_label("gcc", -908) then its lengthExpected result
8build_label(NULL, 9)Expected result
nullExpected files
dangling_repair.cAllowed functions
mallocfreeAllowed headers

v0.40: Create exercises. Challenge the community.
Meet Studio →Repair build_label so every byte of the name#id string it returns is read from memory the function still holds, then hand that one block to the caller.
build_label("core", 7)Expected result
[core#7]For your own tracking. Tests grade your code.
build_label("cache-line", -1024)Expected result
[cache-line#-1024]build_label("", 0)Expected result
[#0]build_label("friday-deploy", INT_MIN)Expected result
[friday-deploy#-2147483648]build_label("gcc", -908) then its lengthExpected result
8build_label(NULL, 9)Expected result
nullExpected files
dangling_repair.cAllowed functions
mallocfreeAllowed headers

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.