I am having problems with my program going in futex_wait_queue_me mode.
I have included the code in its entirety so that you can test it if you want. Keep in mind that this is nowhere near...
Type: Posts; User: youjustreadthis
I am having problems with my program going in futex_wait_queue_me mode.
I have included the code in its entirety so that you can test it if you want. Keep in mind that this is nowhere near...
Hi,
I'm trying to create a program that will be able to send tcp packets using raw sockets. In order to do so I need to pass values like ip-addresses and port numbers to the send_tcp function,...
Just one more thing regarding optget(), more specifically optget_long(). Why are the flags necessary? as far as I can see they don't do much.
static struct option long_options[] =
...
Thanks to both of you for clearing up so many things! did not know a lot of this. I will do as you recomended and use getopt() for my little project as it seems to provide me with exactly what I was...
That worked nicely, but why exactly is it considered bad form if it works? I can see why single letter variable names like l are frowned upon as rags_to_riches pointed out, but not sure if I got what...
Thanks a lot guys! I am used to it being a space between the argument and the string, but now I see. Out of curiosity, how would one add a space between '-s' and the string without getting an error? ...
Hi,
I came across an example program for command line arguments in C and it contains a piece of code I can't get my head around. The following is the program:
#include <stdio.h>
#include...