Implementing a generical 'map' function over arrays in C

后端 未结 3 1300
轻奢々
轻奢々 2020-12-30 09:40

I\'m having difficulties implementing a generic \'map\' function over arrays. I started with the following draft:

void MapArray(void * src, void * dest, void         


        
3条回答
  •  囚心锁ツ
    2020-12-30 10:01

    • Check that the function f is not returning a pointer to a local variable
    • I am not sure what the loop over j is supposed to be doing

提交回复
热议问题