RosettaCodeData/Task/Apply-a-callback-to-an-array/C/apply-a-callback-to-an-array-1.c

17 lines
400 B
C
Raw Permalink Normal View History

2013-04-10 14:58:50 -07:00
#ifndef CALLBACK_H
#define CALLBACK_H
/*
* By declaring the function in a separate file, we allow
* it to be used by other source files.
*
* It also stops ICC from complaining.
*
* If you don't want to use it outside of callback.c, this
* file can be removed, provided the static keyword is prepended
* to the definition.
*/
void map(int* array, int len, void(*callback)(int,int));
#endif