good, thanks.
Type: Posts; User: zedoo
good, thanks.
Thanks Grumpy.
lets say now that i copyy those bytes each one after another into a freshly allocated BYTE Buffer and cast the thing back into a struct test pointer, e.g. like this:
BYTE * b...
unfortunatly i cannot change that functions signature because it comes from a library...
hi,
i have:
struct test{
int a;
int b;
char c[20];
Thanks for the reference.
felix
thanks salem, i know that i need to call wait() ... but this is not the point of interest.
just to mention, i resolve the child zombie thing by calling sigaction() and setting SA_NOCLDWAIT (only...
Hey,
first i will post my code, then i say what happens when i start the program.
int fork_service(service_t *s){
int pid;
pid = fork();
if (pid == -1){
hi,
have myheader.h
struct bla{
int blubb[AN_INT_DEFINED_IN_LIB.H];
};
this looks cool. thanks for the popen hint.
hi,
in my previous post i said i have a char *filename and want to determine whether the file (given it exists) is executable (either a binary or a #! file)
my solution is now to search the...
ok this works with redirection tricks and is well explained here:
http://www.ecst.csuchico.edu/~beej/guide/ipc/pipes.html
hi,
i have a char* filename and want to determine if the file is an executable file.
first, which is the best way to find that out? i have chosen to use the "file" command. i want to make file...
Indeed I get no warnings when i remove those casts, and i compile with -Wall
Hmm, yes i am not a C programmer. What are you exactly meaning? Variable declarations within the code?
Thanks ZuK, this is really the cause.
ok this is it. basically i read something from stdin, make a hash of it and store that hash + the name inside a node. if i insert "h" then i dont want to hash the "h" but instead just print the...
hi,
i have something like this:
typedef struct node {
node *next;
char *data;
} node_t;