I have function with 3 parameters passed in. The same funtion i am calling in other function and passing the 3 parameters but i get a warning message. too few actual parameters. Since the original function and function where i call the old function and passing the parameters are same,I couldnt understand why this warning message has come.How to rectify this warning message. Please help me.
There was a mistake in the header file decalration of the function. And the fact it was so hard to find is that you failed to abide by the 4 commandments of multi-file C programming: 0) There shall be (at least) one header file for every .c file, with the possible exception of a project's "main.c". 1) Every object with external linkage except main() shall be declared exactly once, and this declaration shall be in a header file. 2) Never put a definition in a header. 3) Every module must #include its own header(s), and this #include had better be the first non-comment line of the entire source file. Don't put obstacles between the fellow programmer and your header file. 4) Never use the keyword "extern" in a .c file. Whenever you feel tempted to do that, #include the relevant header instead. 5) Every header file has to be self-contained and idempotent. I.e. it has to be possible to compile the header all by itself, without special compiler switches or previous #includes, and it has to be possible to #include it as many times as you like, without ill effects.