As far as I see, that will just retrieve the command line string. What I want is something like getopt() which will help me parse this string.
Type: Posts; User: lithium
As far as I see, that will just retrieve the command line string. What I want is something like getopt() which will help me parse this string.
Hi. I'm looking for a library to aid in parsing command line arguments on Windows. Does anybody know of such a thing? The GNU getopt library would be an example but that does not run on Windows. I'm...
slackware * **
fluxbox * **
i havent done curses but:
gcc -o test test.c -lcurses
should work. that tells the compiler to link in the curses library (if it's installed)
i dont see how it would be like a different language. it's not like pointer's are handled differently or it takes ten lines to declare an integer.
making a program is the same. write the source...
a raw socket allows instead of the operating system deciding and managing tcp, udp, icmp or other protocols, you will manage them yourself. this means you have a lot more power and can use the...
well said.
the extensions have nothing to do with the fact that linux/window cannot run windows/linux executables. the executable format is different. the linux kernel uses the ELF executable...
thanks, is yours better in some way?
found it myself, no bitwise
multiply 0x6 by 16 and add e to that. problem solved.
hi. im not too good with bitwise operators and im having some trouble with cm11a programming.
#define HOUSE_A 0x06
...
#define DEVICE_B 0x0E
house and device go up to P but im using this as...
store shared libraries in:
/lib
/usr/lib
/usr/local/lib
/usr/X11R6/lib <-- graphical stuff
a lot of UNIX commands are also functions in C.
client protocol: RFC 2812
server protocol RFC 2813
Joanna, please be more specific. Is this in some sort of book? a website or other place? post more of what is needed?
perhaps dispatch report/printing means that you need to program some sort of...
http://cboard.cprogramming.com/showthread.php?s=&threadid=41926
i recommend the "rute linux guide"
you can get the ebook online for free here:
http://www.icon.co.za/~psheer/book/rute.html.gz
that has a chapter on most things you will need help on.
the...
well that didnt really make any sense but it kind of sounded like you want system info: look into the /proc filesystem.
the "ps" command (many useful arguments)
printing: look into the lpd suite...
they copy pointer contents, so do string functions like strncpy() and stuff.
yes i used it in an infinite loop.
if you notice the processor usage goes up, then you made a mistake somewhere. it should work unnoticably.
you can use Cursed GTK (http://zemljanka.sourceforge.net/cursed/) to be able to use a GTK based IDE such as Anjuta on the command line.
i use vim with gcc.
select() is not cpu intensive. i wrote a chat server (im making usernames and whatnot improvements now) that uses select() and cpu usage stays at 0%.
also never use:
strcpy
strcmp
or functions similar to those. instead use:
strncpy
strncmp
this will aviod buffer overflows (segmentation faults).
make sure you allocate memory for strings.
char sample[50];
char* sample;
sample = malloc(50);
yea, i program raw sockets on linux.
and to learn how the functions work download glibc. that has all the functions that are called standard from C in linux. you dont have to install it even if...
you cant prevent them from inputing a character without telling us your operating system and compiler.
you can use fgets() to input and atoi() to convert to int
char string[100]
int...