Code:
GetBorders(&xmin, &xmax, &ymin, &ymax);
Code:
void GetBorders(double *xmin, double *xmax, double *ymin, double *ymax)
{
*xmin = 0 - RADIUS - 7;
*ymin = 0 - RADIUS - 7;
*xmax = RADIUS + 7;
*ymax = RADIUS + 7;
}
RADIUS is defined as 3.0 and the values read into GetBorders are doubles.
This code is giving me the following errors:
moredarts.c:43: warning: conflicting types for 'GetBorders'
moredarts.c:27: warning: previous implicit declaration of 'GetBorders' was here
any suggestions as to how to fix this?