A
Ashe Corven
i need help pretty bad for this
from the command line
how can i copy string1, or string2 to a char* or a string.
for argument 4 (string2)
char temp[256];
strcpy(temp, argv[4]);
this doesn't work
------------
int i;
char temp[256];
for(i=1; argv[4] != '"'; ++i)
{
temp = argv[4];
}
temp = '\0'
neither does this - gives a seg fault on this line
for(i=1; argv[4] != '"'; ++i)
how do i do it. and why don't these techniques work
from the command line
csend string1 4233 "string2"
how can i copy string1, or string2 to a char* or a string.
for argument 4 (string2)
char temp[256];
strcpy(temp, argv[4]);
this doesn't work
------------
int i;
char temp[256];
for(i=1; argv[4] != '"'; ++i)
{
temp = argv[4];
}
temp = '\0'
neither does this - gives a seg fault on this line
for(i=1; argv[4] != '"'; ++i)
how do i do it. and why don't these techniques work