QUOTE(zizo @ 12 Jan, 2008 - 06:05 PM)

but isnt my function declaration and prototype and function call and type all correct? i'm a begginner, so i dont understand the errors are sayin....something wrong with the function parameters.....please see if you can spot the error
No, they're not - that's why I pasted the link. I strongly suggest you read it carefully and try the example program out for yourself in your IDE/compiler. Pay attention to the layout of the program, including the positioning of brackets/parenthesis, and where functions appear in the program relative to other parts of the program - then compare that closely with your program.
QUOTE(Tom9729 @ 12 Jan, 2008 - 08:08 PM)

it must return either EXIT_SUCCESS or EXIT_FAILURE.
main can return any int value - though, the meaning of the return value is O/S dependent
QUOTE(Tom9729 @ 12 Jan, 2008 - 08:08 PM)

* You should almost always include <stdlib.h>.
You should include whichever header files you need, and omit those which you don't need. including a header for the sake of it doesn't really benefit anyone
QUOTE(Tom9729 @ 12 Jan, 2008 - 08:08 PM)

* Functions and variables should always be lower case, upper case is typically reserved for preprocessor macros.
This is a style issue. Whilst I personally would not advocate use of all-caps function names, there are no hard and fast rules on coding style, and advice offering "should always" guidelines on any coding style must be taken with a large pinch of salt. Such guidelines inevitably lead to disagreements and so-called "holy" wars between programmers with differing personal tastes. Consistency and overall readability are far bigger than whether a name is in upper/lower/mixed case IMHO.
This post has been edited by Bench: 12 Jan, 2008 - 04:26 PM