OK, thanks Citizen. I just didn't understand his reply. So what you are basically saying is that both are correct, but my second while loop is slicker. Excellent.
You learn something new...
Type: Posts; User: reptonite
OK, thanks Citizen. I just didn't understand his reply. So what you are basically saying is that both are correct, but my second while loop is slicker. Excellent.
You learn something new...
Ok, we lost Salem, anyone? Can you tell me if the while loop in both cases is correct?
Salem, thanks for the reply, but I am not clear. Are you saying that the second piece of code in my first post is actually correct? And are both versions of the while loop going to work anyway?
Hi there
I am busy swatting, but have hit a speed-bump. It has to do with reversing arrays whilst not allowing use of the array brackets (doing it with pointers in other words).
Basically, I...
Agreed, if I could post the assignment, I would, but basically the dutch C lecturer enjoys playing games. Though he threw us a bone with the sscanf, he played down (heavily) the use of the wait ()...
ok, last question, anyone, what line do I add to the above code to make sure that all PID's are killed off?
Thanks for at least one person picking up on the forking reference though. nice to see someone with a sense of humour, and possessed of C.
#include <stdlib.h>
#include <stdio.h>
#include...
lol, was tyoing and posting when you sent your reply, but my problem isn't forking, its fecking basic structure <sigh> forking hell
lol
Ok, maybe if I'm a bit more specific.
This is me at the moment
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
lads
I'm new to C, and am playing catch-up on assignments. While I'm not looking for anyone to do work for me, I nevertheless need someone to walk me through a problem. I understand forking, but...