D
Digital Khaos
Hello all,
I've been watching the group now for a bit, and I'm still not sure
if this question is relelvent to this group, but here goes anyway:
The following code:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *string = "//usr//bin//emacs";
strcat(string, " &");
system(string);
return(0);
}
is throwing a seg fault. Can anyone tell me why?
Sorry if this is off topic.
I've been watching the group now for a bit, and I'm still not sure
if this question is relelvent to this group, but here goes anyway:
The following code:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *string = "//usr//bin//emacs";
strcat(string, " &");
system(string);
return(0);
}
is throwing a seg fault. Can anyone tell me why?
Sorry if this is off topic.