Search:

Type: Posts; User: lithium

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,033

    As far as I see, that will just retrieve the...

    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.
  2. Replies
    3
    Views
    2,033

    Command Line Argument Parsing

    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...
  3. Thread: Linux distro

    by lithium
    Replies
    18
    Views
    4,822

    slackware * ** fluxbox * **

    slackware * **

    fluxbox * **
  4. Replies
    2
    Views
    6,735

    i havent done curses but: gcc -o test test.c...

    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)
  5. Replies
    9
    Views
    1,760

    i dont see how it would be like a different...

    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...
  6. Thread: raw sockets?

    by lithium
    Replies
    2
    Views
    3,309

    a raw socket allows instead of the operating...

    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...
  7. Thread: linux os

    by lithium
    Replies
    7
    Views
    1,940

    Re: Re: linux os

    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...
  8. Replies
    4
    Views
    1,773

    thanks, is yours better in some way?

    thanks, is yours better in some way?
  9. Replies
    4
    Views
    1,773

    found it myself, no bitwise multiply 0x6 by 16...

    found it myself, no bitwise

    multiply 0x6 by 16 and add e to that. problem solved.
  10. Replies
    4
    Views
    1,773

    bitwise problems...cm11a protocol.

    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...
  11. store shared libraries in: /lib /usr/lib...

    store shared libraries in:
    /lib
    /usr/lib
    /usr/local/lib
    /usr/X11R6/lib <-- graphical stuff
  12. Replies
    5
    Views
    3,964

    a lot of UNIX commands are also functions in C.

    a lot of UNIX commands are also functions in C.
  13. Thread: irc protocol

    by lithium
    Replies
    4
    Views
    2,317

    client protocol: RFC 2812 server protocol RFC...

    client protocol: RFC 2812
    server protocol RFC 2813
  14. Thread: Problem!!!

    by lithium
    Replies
    15
    Views
    2,616

    Joanna, please be more specific. Is this in some...

    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...
  15. Replies
    2
    Views
    2,688

    http://cboard.cprogramming.com/showthread.php?s=&t...

    http://cboard.cprogramming.com/showthread.php?s=&threadid=41926
  16. Thread: Problem!!!

    by lithium
    Replies
    15
    Views
    2,616

    i recommend the "rute linux guide" you can get...

    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...
  17. Thread: Problem!!!

    by lithium
    Replies
    15
    Views
    2,616

    well that didnt really make any sense but it kind...

    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...
  18. Replies
    2
    Views
    3,030

    they copy pointer contents, so do string...

    they copy pointer contents, so do string functions like strncpy() and stuff.
  19. Replies
    9
    Views
    5,115

    yes i used it in an infinite loop. if you...

    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.
  20. Replies
    17
    Views
    3,031

    you can use Cursed GTK...

    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.
  21. Replies
    9
    Views
    5,115

    select() is not cpu intensive. i wrote a chat...

    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%.
  22. Replies
    17
    Views
    2,724

    also never use: strcpy strcmp or functions...

    also never use:
    strcpy
    strcmp

    or functions similar to those. instead use:
    strncpy
    strncmp

    this will aviod buffer overflows (segmentation faults).
  23. Replies
    17
    Views
    2,724

    make sure you allocate memory for strings. ...

    make sure you allocate memory for strings.



    char sample[50];

    char* sample;
    sample = malloc(50);
  24. Replies
    8
    Views
    12,025

    yea, i program raw sockets on linux. and to...

    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...
  25. Replies
    12
    Views
    18,814

    you cant prevent them from inputing a character...

    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...
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4