Perhaps there is another function to clean up?
Rebuild GTK and have it clean up differently?
exit() exits - that's what it does.
What about exit() makes GTK clean up? If it is the action of...
Type: Posts; User: seaking1
Perhaps there is another function to clean up?
Rebuild GTK and have it clean up differently?
exit() exits - that's what it does.
What about exit() makes GTK clean up? If it is the action of...
I believe you understand correctly. Your proposition will work: see the accessor suggestion below for it will be more versatile.
The way you have your code, main will not be able to see the struct...
Make some system calls.
Example:
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
You don't have a structure prototype that your main file can see. You should move the
struct {
foo;
};
to the header file so that all the files can understand what is inside of it.
You...
You could try to minimize your disk seeks by reading in large blocks of data and then adding them to your list. I made something like this but as I read in the first file I sorted into a data...
Several things:
(linux* - I see you are win with your pause)
fflush(FILE*) flushes the write buffer - it writes the buffer to disk or whatever the driver wants. It does not clear the stdin....
Thanks.
omg
I did it again.
(--Wall ?)
Thanks for finding my stupid errors for me. Gah!
I am having trouble accessing variables from a nested struct and pointer. When this program runs I get a seg fault without anything before it. It doesn't even print out what's up.
Can someone help...
yeah I see
I always post before looking at my code
thanks
It declares a char as 32bit?
char is supposed to be 8 bit signed I thought.
I have this code segment meant to read the header from a standard ms paint bitmap.
It reads most of the stuff fine but returns strange values for 0xF9 0xC2 0xD8. (these are actually stored in a...
Yes, map is a global.
That's not what I want to do. :P
Should I be able to do something like this?
> types.c
struct s_cell {
int foo;
int bar;
};
What I want to do is have the data types defined in a seperate file that will compile to an object alone and then include into another file and set up variables using those data types.
I want...
How would I define some structs in a seperate c file and have them exported?
I have inside c file stuff that looks like this:
types.c
#include "types.h"
static struct s_pos{
...
};
there's an error
(i just deleted the =0, i guess i thought it was a for)
that was my problem
(I feel stupid)
oah, sorry
int str_length(char *str)
{
int i;
while(str[i] != '\0')
i++;
return i;
does anyone have any idea why this gives a segmentation fault?
(and please tell me why)
char *cut(char *instr, char delim, int field, int blen)
{
printf("monkeys\n");
int...
how would i assign a char pointer the value returned by a function that returns a string?
#include <stdio.h>
const char *str(void);
int main()