Problem is that it's not posible to write a diferent function that does multiplication with every available N.
What I was asking for is a function which is given N as parameter and returns a pointer to a function which does multiplication with N.