Search:

Type: Posts; User: doxii

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,475

    Xlib - Focused window and notifies

    Hi,

    I'm coding my own window manager prototype and have this problem:

    When I'm not actively grabbing any button or pointer the notifies won't work correctly. When a pointer leaves the focused...
  2. Replies
    15
    Views
    3,715

    Let's see. Say we have a file with four lines,...

    Let's see. Say we have a file with four lines, each containing characters. First we get the number of lines in file like this:


    for(lines = 0, delim = strtok(whole, "\n"); delim; delim =...
  3. Replies
    15
    Views
    3,715

    I actually found another problem with...

    I actually found another problem with master5001's code. This loop


    for(lines = 0, delim = strtok(whole, "\n"); delim; delim = strtok(NULL, "\\
    n")) ++lines;

    utilises strtok-function...
  4. Replies
    15
    Views
    3,715

    That doesn't help either...

    That doesn't help either...
  5. Replies
    15
    Views
    3,715

    Aww, man...That was a bad n00bian mistake. Well,...

    Aww, man...That was a bad n00bian mistake. Well, anyway I had already checked that the file opens properly. Here's the complete code in all it's beauty:



    #include <stdio.h>
    #include <stdlib.h>...
  6. Replies
    15
    Views
    3,715

    No good. Still a segfault. Fails in the last...

    No good. Still a segfault. Fails in the last for-loop.
  7. Replies
    15
    Views
    3,715

    Elysia, master5001, thank you for your answers. ...

    Elysia, master5001, thank you for your answers.

    master5001, I tried your function but couldn't get it to work properly. Here's what I did first:



    #include <stdio.h>
    #include <stdlib.h>...
  8. Replies
    15
    Views
    3,715

    String-length of an multi-dimensional array

    Hi,

    How is it possible to get a string-length of an multi-dimensional array? I need it to reallocate memory for an array that's meant to store strings, each in their own individual element. My...
Results 1 to 8 of 8