So I'm getting this warning in the last line of this block of code I wrote.
int main(int argc, char **argv)
{
while(1) {
char buffer[400];
char str;
if(strcmp(argv[1],"start") == 0 )
{ printf("myshell: process has started \n");
int i=0;
while (str = strtok(buffer," ") == NULL) {
argv[i] = str; //**This line causes the warning!
Is it because of how I declare str? Is that incorrect? Thank you!
As the title suggests, the warning is warning: assignment makes point from integer without cast.