Thank you, then that was what I was looking for.
While interpreting my own code. (odd way to put it, I know). I wanted to know the limitation of the free() function. That means the pointers is...
Type: Posts; User: Crosility
Thank you, then that was what I was looking for.
While interpreting my own code. (odd way to put it, I know). I wanted to know the limitation of the free() function. That means the pointers is...
Thank you, however, it DOES release the information (as in my example code) correct?
I was not aware it posted two threads?
That is a nice method, I may actually use something just like...
Does free() make the variable null when it completes?
I'm guessing no, because in my program, they are returning the same memory location. Is it still accessible after un-allocating?
...
2 days ago I knew my goal. It has not changed.
The thing about all those things running mentioned: They are either to maintain visual, background, or awaiting input to begin a new thread.
I was...
I've actually come across an issue, if anyone can help.
#include <stdio.h>
#include <process.h>
#include <windows.h>
#include <time.h>
void thread(void *);
More links I've been reading:
Multithreading Tutorial - CodeProject
Part 1 & 2 (links provided in previous link also)...
Thanks CommonTater. That makes sense. Gonna look into the Synchronization aspect.
What confuses me however, is that the process would happen based on received input. So, as it may be running a new...
Thread (computer science) - Wikipedia, the free encyclopedia
Thread pool pattern - Wikipedia, the free encyclopedia
I believe these articles have helped. But if anyone can offer further clarity,...
Though CommonTater is correct.. noone will write it for you. (Or shouldn't)..
I suggest running a while loop, with x and y as the components. Y will increase till the end of the array. If there is...
Haha. I actually have a few projects going at once. Between releasing iPhone apps, College, and juggling normal-everyday life. I have the most interest in the server/client creation idea. I am...
Haha. Well. Apparently everyone took what I said that way.
Oops.
I'm going to be building a test client/server WAYYYY before I EVER do any bitfield optimization, or flagging, or anything. I...
I'll look into the overhead of network transfer.
The thing is, because it'll be network/client interaction, I would need to update them on all little changes that takes place. (Such as a game) --...
***Background
I understand that everything is added to the stack, when finished, removed from the stack.
What I don't understand is the importance of programming to/around the stack.
Here's...
Never needed to use memcpy before.
Okay, thank you. I'll try that.
----
Splendid.
Output:
Right before you said that.. I was testing how I'd be passing information over, by testing a quick DOS application.
I would need to be able to assign another structure from a structure, and ran...
#include <stdio.h>
struct bb {
unsigned char a : 3;
unsigned char b : 2;
unsigned char c : 2;
unsigned char d : 1;
} b;
struct aa {
Haha, thanks cas.
Honestly, I'm not worried about performance per-say. The original intent was dealing with information passed over a network. Working with the same operating system, and compiler,...
I read what your asking for. And it isn't that simple for C. For OSX, cocoa programming is much different than standard C. They have their own built in interface builder.
Windows has WinGUI...
Oh. Haha. I need to research the processor. It never occurred to me the reason they were called 32 bit, and 64 bit processors. It's not processing just the variable, it's processing the variable at...
First, you have one too many arguments in the quotes. Remove the last %d.
Now. If you compile this:
char var = 0;
// scanf("%c",&var);
printf("%c\n%d\n%d", (var-'0') ,(int)var, '0');
Haha! I see. Thank you. Would this be more or less efficient than if I did a bitfield?
It looks to be equivalent, but instead of editing say.. a bitfield, I'd be checking inside of a char itself.
...
Okay. So, programming around endian will be needed on client side. Not server. To first check to see if a variable is littleendian or bigendian. Doesn't sound like a big deal. A test for that when...
I agree with the post Salem, and yes, it'll be aimed at PC only.
Not open source, and both the server, and the client will be compiled on one compiler. :)
So it eliminates a few problems, at least....
Yes, but it isn't going to be 3d accelerated. Different approach of a game. So the graphical intensiveness is less of a concern, than server usage.
So, the real reason I even begun this thread was...
Okay. I'm going to cut to the chase of why I'm asking.
I am creating a game. (No, not in DOS, but it'll will comprise of a LOT of C code).
The client would connect to a server. The server would...