A
Ape Ricket
Hi. During my program's set-up phase where it reads in the arguments it
was invoked with, I programmed this:
if (strcmp(argv,"-G") ==0)
{
geom_scaling = ON;
if (i < argc-1)
strcpy(geom_string,argv[i+1]);
}
(
i is a loop counter,
geom_scaling has been declared as int,
ON has been #defined,
geom_string has been declared thus: char geom_string[64];
--the program is for my own use only, and a length of 64 is way way longer
than could ever make sense, hence the lack of error checking.
)
Could someone tell me whether to worry about the following compiler
warning, and how to fix it if needs be:
warning: type mismatch in implicit declaration for built-in function
`strcpy'
As you will have guessed, I'm a beginner. Thanks --Ape
was invoked with, I programmed this:
if (strcmp(argv,"-G") ==0)
{
geom_scaling = ON;
if (i < argc-1)
strcpy(geom_string,argv[i+1]);
}
(
i is a loop counter,
geom_scaling has been declared as int,
ON has been #defined,
geom_string has been declared thus: char geom_string[64];
--the program is for my own use only, and a length of 64 is way way longer
than could ever make sense, hence the lack of error checking.
)
Could someone tell me whether to worry about the following compiler
warning, and how to fix it if needs be:
warning: type mismatch in implicit declaration for built-in function
`strcpy'
As you will have guessed, I'm a beginner. Thanks --Ape