hello forum,
again i fall down onto a basic problem. i took this code from the manpage of strsep:
char **ap, *argv[10], *inputstring;
for (ap = argv; (*ap =...
Type: Posts; User: fudgecode
hello forum,
again i fall down onto a basic problem. i took this code from the manpage of strsep:
char **ap, *argv[10], *inputstring;
for (ap = argv; (*ap =...
argv[0] is the first argument and in this case the called program. this must not be NULL(at least on *nix). you need an argument to the execve system call, no?
so simply put something like:
if(len(argc)<5)
{
printf("charming");
}
hello forum,
i am somehow stuck with a beginner networking problem. i generally do not know how to read/recv all data to process it. for instance, taking this example:
file =...
right, there were some other OS in the wild ;)
thanks giove, as well for the range advice, always awesome to trap into such bugs :D
my two cents:
1. from your commandline i suspect you code onto linux, i am not that familiar with linux in include files, on bsd for this to work you will need at least(coding in c not c++)
...
hello forum,
hope this is my last question about returning datasets. i tried it this time with an int array, which looks for me something like this int array[]; when trying this with the shown...
of course! thank you! :)
hello forum,
i have this code:
fd_set *askfd(int s, fd_set a)
{
FD_ZERO(&a);
FD_SET(s,&a);
no problem, you just trying to help and i lack of explaining what i am looking for.
now, lets assume i have those a message from a remote system and i know the protocol, so i know the first 4...
you seem not to understand my problem. i do not care how the data is send or recieved. what i do care is to process this information. means i want to navigate through a recieved buffer.
and pack...
good question why i am not using sendto, i have to read about this function. but this is not solving the point itself. as the send ip address and port was just an example to make myself clear. it...
hello board,
i am new here and in c as well. i try myself on network programming(a simple binary protocol), the simple tasks are working so far but i am stuck at progressing a received buffer.
...