Simple problem with a function call towards a pre-existing function

This is a discussion on Simple problem with a function call towards a pre-existing function within the C Programming forums, part of the General Programming Boards category; Were given the header file (which only contains the function prototype) and the object file with the defenition to a ...

Simple problem with a function call towards a pre-existing function

Were given the header file (which only contains the function prototype) and the object file with the defenition to a function that prompts the user to enter the filename (a file of only integer numbers), to which the function will then store the integers into an array.

with this I get the following warning: "warning: passing arg1 of 'LoadPuzzle' makes pointer from integer without a cast"

messing around with the & and * I still didn't have any luck. The program/function will run but as soon as I enter in the filename with all the integers I get a segmentation error. I know it doesn't help not being able to see the definition for LoadPuzzle(), the header and object file for that function is given by the professor, others have made it work so I know 100% that the function is written correctly without any errors. Any help would be greatly appreciated! Thanks!

* This file contains the function prototype of the function LoadPuzzle() *
* defined in loadPuzzle.c and the #defines for ROWS and COLS which sets *
* the size of the two-dimensional arrays used for the sudoku puzzle and *
* its solution. The sizes shown here are for a 9 X 9 puzzle, the default. *
* These sizes match the size of the puzzles and solutions supplied for this *
* project. *
\************************************************* ***************************/

/* Size of a standard sudoku puzzle */
#define ROWS 9
#define COLS 9

/************************************************** *********************
* LoadPuzzle() is a high-level function that:
* prompts the users for a filename
* opens that file
* reads the data into two ROWS X COLS arrays of ints passed into the
* function, which are the original puzzle and its solution
* closes the file
*
* INPUTS: two 9 X 9 arrays of ints, original & solution, and rows & cols
* OUTPUT: none, but the arrays passed in are filled with the data
* from the file requested
************************************************** ********************/

....wow....hah...well I feel dumb. I could have sworn it was necessary to specifiy the size of the array when it gets passed into the function. Thank you yxunomei for the helpful and very fast reply. I greatly appreciate it!