Repair this code
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.
Steps
$ build_label("core", 7)
[core#7]
$ build_label("cache-line", -1024)
[cache-line#-1024]
$ build_label("", 0)
[#0]
$ build_label("friday-deploy", INT_MIN)
[friday-deploy#-2147483648]
$ build_label("gcc", -908) then its length
8
$ build_label(NULL, 9)
null
Expected files
Allowed functions
Allowed headers

Repair this code
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.
Steps
$ build_label("core", 7)
[core#7]
$ build_label("cache-line", -1024)
[cache-line#-1024]
$ build_label("", 0)
[#0]
$ build_label("friday-deploy", INT_MIN)
[friday-deploy#-2147483648]
$ build_label("gcc", -908) then its length
8
$ build_label(NULL, 9)
null
Expected files
Allowed functions
Allowed headers

Tests
Run the tests to grade your code