--
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minix3/9df9f1bb-a58c-490a-9923-91c7cabb0ac7%40googlegroups.com.
Hello,
I have a segmentation fault error.
My code looks like this:
Char* a;
Char* b;
Int f,p;
While (c=getopt(argc,argv,"klm:") != -1)
{ switch (c)
{ case 'k':
a = optarg;
f = atoi(a);
break;
case 'l':
b = optarg;
p = atoi(b);
break;
...
}
}
string, you say that only "-m" takes an argument. For the other two options, optarg is NULL.