Well, it\'s kinda hard for me to describe the problem precisely. Let me show the code below:
I have a function in C:
int foo(char *dev