14 Aug, 2010, Zula110100100 wrote in the 1st comment:
Votes: 0
In Mud.h
char * one_arg (char *argument, char *arg_first);
In Mud.c
char *one_arg(char *argument, char *arg_first)
{
return argument;
}
in Server.c
wd->inbuf = one_arg(wd->inbuf, buf);
DESCRIPTOR_DATA *wd;
inbuf and buf are of type char[1024]


one_arg is just a copy of one_argument

?
14 Aug, 2010, Oliver wrote in the 2nd comment:
Votes: 0
You are looking for:

In Mud.h          
char * one_arg args( (char *argument, char *arg_first) );


I believe?
14 Aug, 2010, Zula110100100 wrote in the 3rd comment:
Votes: 0
I am not making it portable…so no, I am not, as I have no macro for args()
14 Aug, 2010, David Haley wrote in the 4th comment:
Votes: 0
You can't assign a char* to a char array.
14 Aug, 2010, Zula110100100 wrote in the 5th comment:
Votes: 0
Is the afore-mentioned dereferencing trick the only fix?
14 Aug, 2010, Zula110100100 wrote in the 6th comment:
Votes: 0
Nvermind, fixed it by putting the remaining argument in a new variable called char *extra_args;
14 Aug, 2010, David Haley wrote in the 7th comment:
Votes: 0
What dereferencing trick?
14 Aug, 2010, Davion wrote in the 8th comment:
Votes: 0
Your code is doing some very weird things. I suggest running under valgrind and attempting to read that ;). Post it here if you cant.
0.0/8