Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<string.h>
- #include<stdio.h>
- #include<math.h>
- //calculating resistance based on first three bands
- int resistance_calc(const char *a[], const char *b[], const char *c[], const char *d[]){
- int first, second, third, fourth;
- if((strcmp(a, 'Brown') || strcmp(a, 'BROWN') || strcmp(a, 'brown'))==1)
- first = 1;
- if((strcmp(a, 'Red') || strcmp(a, 'RED') || strcmp(a, 'red'))==1)
- first = 2;
- if((strcmp(a, 'Orange') || strcmp(a, 'ORANGE') || strcmp(a, 'orange'))==1)
- first = 3;
- if((strcmp(a, 'Yellow') || strcmp(a, 'YELLOW') || strcmp(a, 'yellow'))==1)
- first = 4;
- if((strcmp(a, 'Green') || strcmp(a, 'GREEN') || strcmp(a, 'green'))==1)
- first = 5;
- if((strcmp(a, 'Blue') || strcmp(a, 'BLUE') || strcmp(a, 'blue'))==1)
- first = 6;
- if((strcmp(a, 'Violet') || strcmp(a, 'VIOLET') || strcmp(a, 'violet'))==1)
- first = 7;
- if((strcmp(a, 'Gray') || strcmp(a, 'GRAY') || strcmp(a, 'gray'))==1)
- first = 8;
- if((strcmp(a, 'White') || strcmp(a, 'WHITE') || strcmp(a, 'white'))==1)
- first = 9;
- else
- printf("Please input a valid first band color (red, orange, yellow, green, violet, gray or white)");
- scanf("%s", a);
- if((strcmp(b, 'Black') || strcmp(b, 'BLACK') || strcmp(b, 'black'))==1)
- second = 0;
- if((strcmp(b, 'Brown') || strcmp(b, 'BROWN') || strcmp(b, 'brown'))==1)
- second = 1;
- if((strcmp(b, 'Red') || strcmp(b, 'RED') || strcmp(b, 'red'))==1)
- second = 2;
- if((strcmp(b, 'Orange') || strcmp(b, 'ORANGE') || strcmp(b, 'orange'))==1)
- second = 3;
- if((strcmp(b, 'Yellow') || strcmp(b, 'YELLOW') || strcmp(b, 'yellow'))==1)
- second = 4;
- if((strcmp(b, 'Green') || strcmp(b, 'GREEN') || strcmp(b, 'green'))==1)
- second = 5;
- if((strcmp(b, 'Blue') || strcmp(b, 'BLUE') || strcmp(b, 'blue'))==1)
- second = 6;
- if((strcmp(b, 'Violet') || strcmp(b, 'VIOLET') || strcmp(b, 'violet'))==1)
- second = 7;
- if((strcmp(b, 'Gray') || strcmp(b, 'GRAY') || strcmp(b, 'gray'))==1)
- second = 8;
- if((strcmp(b, 'White') || strcmp(b, 'WHITE') || strcmp(b, 'white'))==1)
- second = 9;
- else
- printf("Please input a valid second band color (black, red, orange, yellow, green, violet, gray or white)");
- scanf("%s", b);
- if((strcmp(c, 'Black') || strcmp(c, 'BLACK') || strcmp(c, 'black'))==1)
- third = 0;
- if((strcmp(c, 'Brown') || strcmp(c, 'BROWN') || strcmp(c, 'brown'))==1)
- third = 1;
- if((strcmp(c, 'Red') || strcmp(c, 'RED') || strcmp(c, 'red'))==1)
- third = 2;
- if((strcmp(c, 'Orange') || strcmp(c, 'ORANGE') || strcmp(c, 'orange'))==1)
- third = 3;
- if((strcmp(c, 'Yellow') || strcmp(c, 'YELLOW') || strcmp(c, 'yellow'))==1)
- third = 4;
- if((strcmp(c, 'Green') || strcmp(c, 'GREEN') || strcmp(c, 'green'))==1)
- third = 5;
- if((strcmp(c, 'Blue') || strcmp(c, 'BLUE') || strcmp(c, 'blue'))==1)
- third = 6;
- if((strcmp(c, 'Violet') || strcmp(c, 'VIOLET') || strcmp(c, 'violet'))==1)
- third = 7;
- if((strcmp(c, 'Gray') || strcmp(c, 'GRAY') || strcmp(c, 'gray'))==1)
- third = 8;
- if((strcmp(c, 'White') || strcmp(c, 'WHITE') || strcmp(c, 'white'))==1)
- third = 9;
- else
- printf("Please input a valid third band color (black, red, orange, yellow, green, violet, gray or white)");
- scanf("%s", c);
- if((strcmp(d, 'Silver') || strcmp(d, 'SILVER') || strcmp(d, 'silver'))==1)
- fourth = pow(10,-2);
- if((strcmp(d, 'Gold') || strcmp(d, 'GOLD') || strcmp(d, 'gold'))==1)
- fourth = pow(10, -1);
- if((strcmp(d, 'Black') || strcmp(d, 'BLACK') || strcmp(d, 'black'))==1)
- fourth = pow(10, 0);
- if((strcmp(d, 'Brown') || strcmp(d, 'BROWN') || strcmp(d, 'brown'))==1)
- fourth = pow(10, 1);
- if((strcmp(d, 'Red') || strcmp(d, 'RED') || strcmp(d, 'red'))==1)
- fourth = pow(10, 2);
- if((strcmp(d, 'Orange') || strcmp(d, 'ORANGE') || strcmp(d, 'orange'))==1)
- fourth = pow(10, 3);
- if((strcmp(d, 'Yellow') || strcmp(d, 'YELLOW') || strcmp(d, 'yellow'))==1)
- fourth = pow(10, 4);
- if((strcmp(d, 'Green') || strcmp(d, 'GREEN') || strcmp(d, 'green'))==1)
- fourth = pow(10, 5);
- if((strcmp(d, 'Blue') || strcmp(d, 'BLUE') || strcmp(d, 'blue'))==1)
- fourth = pow(10, 6);
- if((strcmp(d, 'Violet') || strcmp(d, 'VIOLET') || strcmp(d, 'violet'))==1)
- fourth = pow(10, 7);
- if((strcmp(d, 'Gray') || strcmp(d, 'GRAY') || strcmp(d, 'gray'))==1)
- fourth = pow(10, 8);
- if((strcmp(d, 'White') || strcmp(d, 'WHITE') || strcmp(d, 'white'))==1)
- fourth = pow(10, 9);
- else
- printf("Please input a valid fourth band color (silver, gold, black, red, orange, yellow, green, violet, gray or white)");
- scanf("%s", d);
- return (((first*100)+(second*10)+(third))*fourth);
- }
- int main(void)
- {
- char str[100]="";
- char *bands[6];
- int i;
- float resistance;
- //Reads in a string
- fgets(str, 100, stdin);
- //Seperates the string, by space character, into an array
- bands[0]=strtok(str,' ');
- if(bands[0]==NULL)
- {
- printf("Please input the six color bands from you resistor.\n");
- return (0);
- }
- for(i=1;i<6;i++)
- {
- bands[i]=strtok(NULL,' ');
- if(bands[i]==NULL)
- break;
- }
- resistance = resistance_calc(&bands[0], &bands[1], &bands[2], &bands[3]);
- printf("%10.4f Ohms\n", resistance);
- return 0;
- }
- --------------------------------------------------------------------------------------------------
- >gcc -Wall program.c
- The error is longer than the terminal window is allowing:
- program.c:27:37: warning: character constant too long for its type
- program.c:27: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:27: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:27:59: warning: character constant too long for its type
- program.c:27: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:27: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:31: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char **’
- program.c:34:15: warning: character constant too long for its type
- program.c:34: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:34: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:34:37: warning: character constant too long for its type
- program.c:34: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:34: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:34:59: warning: character constant too long for its type
- program.c:34: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:34: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:36:15: warning: character constant too long for its type
- program.c:36: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:36: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:36:37: warning: character constant too long for its type
- program.c:36: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:36: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:36:59: warning: character constant too long for its type
- program.c:36: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:36: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:38:15: warning: multi-character character constant
- program.c:38: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:38: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:38:35: warning: multi-character character constant
- program.c:38: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:38: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:38:55: warning: multi-character character constant
- program.c:38: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:38: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:40:15: warning: character constant too long for its type
- program.c:40: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:40: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:40:38: warning: character constant too long for its type
- program.c:40: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:40: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:40:61: warning: character constant too long for its type
- program.c:40: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:40: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:42:15: warning: character constant too long for its type
- program.c:42: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:42: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:42:38: warning: character constant too long for its type
- program.c:42: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:42: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:42:61: warning: character constant too long for its type
- program.c:42: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:42: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:44:15: warning: character constant too long for its type
- program.c:44: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:44: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:44:37: warning: character constant too long for its type
- program.c:44: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:44: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:44:59: warning: character constant too long for its type
- program.c:44: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:44: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:46:15: warning: multi-character character constant
- program.c:46: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:46: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:46:36: warning: multi-character character constant
- program.c:46: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:46: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:46:57: warning: multi-character character constant
- program.c:46: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:46: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:48:15: warning: character constant too long for its type
- program.c:48: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:48: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:48:38: warning: character constant too long for its type
- program.c:48: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:48: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:48:62: warning: character constant too long for its type
- program.c:48: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:48: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:50:15: warning: multi-character character constant
- program.c:50: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:50: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:50:36: warning: multi-character character constant
- program.c:50: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:50: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:50:57: warning: multi-character character constant
- program.c:50: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:50: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:52:15: warning: character constant too long for its type
- program.c:52: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:52: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:52:37: warning: character constant too long for its type
- program.c:52: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:52: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:52:59: warning: character constant too long for its type
- program.c:52: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:52: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:56: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char **’
- program.c:59:15: warning: character constant too long for its type
- program.c:59: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:59: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:59:37: warning: character constant too long for its type
- program.c:59: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:59: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:59:59: warning: character constant too long for its type
- program.c:59: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:59: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:61:15: warning: character constant too long for its type
- program.c:61: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:61: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:61:37: warning: character constant too long for its type
- program.c:61: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:61: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:61:59: warning: character constant too long for its type
- program.c:61: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:61: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:63:15: warning: multi-character character constant
- program.c:63: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:63: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:63:35: warning: multi-character character constant
- program.c:63: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:63: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:63:55: warning: multi-character character constant
- program.c:63: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:63: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:65:15: warning: character constant too long for its type
- program.c:65: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:65: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:65:38: warning: character constant too long for its type
- program.c:65: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:65: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:65:61: warning: character constant too long for its type
- program.c:65: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:65: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:67:15: warning: character constant too long for its type
- program.c:67: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:67: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:67:38: warning: character constant too long for its type
- program.c:67: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:67: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:67:61: warning: character constant too long for its type
- program.c:67: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:67: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:69:15: warning: character constant too long for its type
- program.c:69: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:69: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:69:37: warning: character constant too long for its type
- program.c:69: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:69: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:69:59: warning: character constant too long for its type
- program.c:69: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:69: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:71:15: warning: multi-character character constant
- program.c:71: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:71: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:71:36: warning: multi-character character constant
- program.c:71: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:71: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:71:57: warning: multi-character character constant
- program.c:71: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:71: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:73:15: warning: character constant too long for its type
- program.c:73: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:73: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:73:38: warning: character constant too long for its type
- program.c:73: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:73: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:73:61: warning: character constant too long for its type
- program.c:73: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:73: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:75:15: warning: multi-character character constant
- program.c:75: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:75: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:75:36: warning: multi-character character constant
- program.c:75: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:75: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:75:57: warning: multi-character character constant
- program.c:75: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:75: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:77:15: warning: character constant too long for its type
- program.c:77: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:77: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:77:37: warning: character constant too long for its type
- program.c:77: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:77: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:77:59: warning: character constant too long for its type
- program.c:77: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:77: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:81: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char **’
- program.c:84:15: warning: character constant too long for its type
- program.c:84: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:84: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:84:38: warning: character constant too long for its type
- program.c:84: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:84: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:84:61: warning: character constant too long for its type
- program.c:84: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:84: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:86:15: warning: multi-character character constant
- program.c:86: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:86: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:86:36: warning: multi-character character constant
- program.c:86: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:86: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:86:57: warning: multi-character character constant
- program.c:86: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:86: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:88:15: warning: character constant too long for its type
- program.c:88: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:88: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:88:37: warning: character constant too long for its type
- program.c:88: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:88: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:88:59: warning: character constant too long for its type
- program.c:88: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:88: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:90:15: warning: character constant too long for its type
- program.c:90: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:90: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:90:37: warning: character constant too long for its type
- program.c:90: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:90: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:90:59: warning: character constant too long for its type
- program.c:90: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:90: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:92:15: warning: multi-character character constant
- program.c:92: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:92: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:92:35: warning: multi-character character constant
- program.c:92: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:92: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:92:55: warning: multi-character character constant
- program.c:92: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:92: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:94:15: warning: character constant too long for its type
- program.c:94: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:94: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:94:38: warning: character constant too long for its type
- program.c:94: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:94: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:94:61: warning: character constant too long for its type
- program.c:94: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:94: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:96:15: warning: character constant too long for its type
- program.c:96: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:96: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:96:38: warning: character constant too long for its type
- program.c:96: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:96: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:96:61: warning: character constant too long for its type
- program.c:96: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:96: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:98:15: warning: character constant too long for its type
- program.c:98: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:98: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:98:37: warning: character constant too long for its type
- program.c:98: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:98: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:98:59: warning: character constant too long for its type
- program.c:98: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:98: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:100:15: warning: multi-character character constant
- program.c:100: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:100: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:100:36: warning: multi-character character constant
- program.c:100: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:100: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:100:57: warning: multi-character character constant
- program.c:100: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:100: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:102:15: warning: character constant too long for its type
- program.c:102: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:102: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:102:38: warning: character constant too long for its type
- program.c:102: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:102: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:102:61: warning: character constant too long for its type
- program.c:102: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:102: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:104:15: warning: multi-character character constant
- program.c:104: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:104: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:104:36: warning: multi-character character constant
- program.c:104: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:104: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:104:57: warning: multi-character character constant
- program.c:104: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:104: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:106:15: warning: character constant too long for its type
- program.c:106: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:106: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:106:37: warning: character constant too long for its type
- program.c:106: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:106: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:106:59: warning: character constant too long for its type
- program.c:106: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘const char **’
- program.c:106: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast
- /usr/include/string.h:142: note: expected ‘const char *’ but argument is of type ‘int’
- program.c:110: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char **’
- program.c: In function ‘main’:
- program.c:125: warning: passing argument 2 of ‘strtok’ makes pointer from integer without a cast
- /usr/include/string.h:346: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
- program.c:134: warning: passing argument 2 of ‘strtok’ makes pointer from integer without a cast
- /usr/include/string.h:346: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
- program.c:139: warning: passing argument 1 of ‘resistance_calc’ from incompatible pointer type
- program.c:6: note: expected ‘const char **’ but argument is of type ‘char **’
- program.c:139: warning: passing argument 2 of ‘resistance_calc’ from incompatible pointer type
- program.c:6: note: expected ‘const char **’ but argument is of type ‘char **’
- program.c:139: warning: passing argument 3 of ‘resistance_calc’ from incompatible pointer type
- program.c:6: note: expected ‘const char **’ but argument is of type ‘char **’
- program.c:139: warning: passing argument 4 of ‘resistance_calc’ from incompatible pointer type
- program.c:6: note: expected ‘const char **’ but argument is of type ‘char **’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement