Search:

Type: Posts; User: Bill Cosby

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    3,345

    Xlib/xcb and drawing pictures

    Hi there,

    I just started to code with the Xlib/xcb libraries, and my goal is to simply have pictures drawn on a window, for I am to make an image viewer :)
    So far so good, however I noticed two...
  2. Replies
    4
    Views
    1,385

    Cool thank you, I got it working with the pragma...

    Cool thank you, I got it working with the pragma directive. :)
  3. Replies
    4
    Views
    1,385

    Strange size of struct

    Hi there,

    I have a question regarding structs, I have a struct with five members, 2 bytes + 4 bytes + 2 bytes + 2 bytes + 4 bytes, so this should mean my struct is 14 bytes large, the sizes of the...
  4. Replies
    5
    Views
    1,743

    It's weird, I know traced the problem to be gtk...

    It's weird, I know traced the problem to be gtk itself, if I call execvp() before the gtk_main() then it works flawlessly, when I try to call the function from within the gtk_main() (through signal...
  5. Replies
    5
    Views
    1,743

    Yes, it does, i specifically get the commands...

    Yes, it does, i specifically get the commands from a list of files, I got from the path variable.

    The path does give "/usr/local/bin/:/bin" however sed s in /bin and acroread in /usr/local/bin,...
  6. Replies
    5
    Views
    1,743

    Runbox, execute a program.

    Hey there,

    I am trying to write a runbox for linux, like in Gnome or KDE when you press Alt+F2.
    The crux is, I am not sure how I can even start a program from my code base..

    I tried system and...
  7. Thread: Linux SDK

    by Bill Cosby
    Replies
    2
    Views
    1,921

    Well, you propably mean the documentaion for the...

    Well, you propably mean the documentaion for the kernel? Since there is no "SDK" for Linux.
    Anyways, try this http://www.xml.com/ldd/chapter/book/
  8. Replies
    16
    Views
    2,983

    Borland C/C++BuilderX is a very nice and...

    Borland C/C++BuilderX is a very nice and powerfull IDE, and it's free for personal use
    http://www.borland.com/cbuilderx/
  9. Replies
    6
    Views
    24,177

    Thanks to both of you, I try fgets, but my...

    Thanks to both of you, I try fgets, but my problems were because of this


    char delim[] = " ";


    I changed it to


    char delim[] = " \n";
  10. Replies
    6
    Views
    24,177

    Thank you very much, it now works the same way as...

    Thank you very much, it now works the same way as if I did


    scanf("%s %s", str1, str2);

    but then I must enter space to get any results.
    Are there any possibilities to make it optional...
  11. Replies
    6
    Views
    24,177

    scanf - strtok and space as delimiter?

    Hello everyone,

    I want to read a string with scanf and then devide it into two parts with strtok by using space as the delimiter.

    Well, till now I'm this far



    char str[MAX_CHARS];
    char...
Results 1 to 11 of 11