Objective
Write record_with_id, which hands back a copy of src carrying the id you were given while the record the caller passed keeps every field it had.
Steps
$ record_with_id({1, 90, "malloc"}, 7)
copy id=7 score=90 name=[malloc] src id=1 score=90 name=[malloc]
$ record_with_id({2, 30, name}, 11) then name[0] = 'S', with name holding "segv"
copy id=11 score=30 name=[Segv] src id=2 score=30 name=[Segv] shared=yes
$ record_with_id({0, 0, NULL}, 4)
copy id=4 score=0 name=null src id=0 score=0 name=null shared=yes
$ record_with_id({9, -1, ""}, 3)
copy id=3 score=-1 name=[] src id=9 score=-1 name=[]
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Objective
Write record_with_id, which hands back a copy of src carrying the id you were given while the record the caller passed keeps every field it had.
Steps
$ record_with_id({1, 90, "malloc"}, 7)
copy id=7 score=90 name=[malloc] src id=1 score=90 name=[malloc]
$ record_with_id({2, 30, name}, 11) then name[0] = 'S', with name holding "segv"
copy id=11 score=30 name=[Segv] src id=2 score=30 name=[Segv] shared=yes
$ record_with_id({0, 0, NULL}, 4)
copy id=4 score=0 name=null src id=0 score=0 name=null shared=yes
$ record_with_id({9, -1, ""}, 3)
copy id=3 score=-1 name=[] src id=9 score=-1 name=[]
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Tests
Run the tests to grade your code