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...
Type: Posts; User: doxii
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...
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 =...
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...
That doesn't help either...
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>...
No good. Still a segfault. Fails in the last for-loop.
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>...
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...