Search:

Type: Posts; User: Crosility

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,134

    Thank you, then that was what I was looking for....

    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...
  2. Replies
    8
    Views
    1,134

    Thank you, however, it DOES release the...

    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...
  3. Replies
    8
    Views
    1,134

    Quick Question - free()

    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?


    ...
  4. Replies
    8
    Views
    6,939

    2 days ago I knew my goal. It has not changed....

    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...
  5. Replies
    8
    Views
    6,939

    I've actually come across an issue, if anyone can...

    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 *);
  6. Replies
    8
    Views
    6,939

    More links I've been reading: Multithreading...

    More links I've been reading:

    Multithreading Tutorial - CodeProject

    Part 1 & 2 (links provided in previous link also)...
  7. Replies
    8
    Views
    6,939

    Thanks CommonTater. That makes sense. Gonna look...

    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...
  8. Replies
    8
    Views
    6,939

    Thread (computer science) - Wikipedia, the free...

    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,...
  9. Replies
    6
    Views
    3,042

    Though CommonTater is correct.. noone will write...

    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...
  10. Replies
    44
    Views
    34,018

    Haha. I actually have a few projects going at...

    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...
  11. Replies
    44
    Views
    34,018

    Haha. Well. Apparently everyone took what I said...

    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...
  12. Replies
    44
    Views
    34,018

    I'll look into the overhead of network transfer....

    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) --...
  13. Replies
    8
    Views
    6,939

    Concept On Stack

    ***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...
  14. Replies
    4
    Views
    1,712

    Never needed to use memcpy before. Okay, thank...

    Never needed to use memcpy before.
    Okay, thank you. I'll try that.

    ----

    Splendid.

    Output:
  15. Replies
    44
    Views
    34,018

    Right before you said that.. I was testing how...

    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...
  16. Replies
    4
    Views
    1,712

    Structures to Equal

    #include <stdio.h>

    struct bb {
    unsigned char a : 3;
    unsigned char b : 2;
    unsigned char c : 2;
    unsigned char d : 1;
    } b;

    struct aa {
  17. Replies
    44
    Views
    34,018

    Haha, thanks cas. Honestly, I'm not worried...

    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,...
  18. Replies
    18
    Views
    10,506

    I read what your asking for. And it isn't that...

    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...
  19. Replies
    44
    Views
    34,018

    Oh. Haha. I need to research the processor. It...

    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...
  20. Replies
    5
    Views
    2,184

    First, you have one too many arguments in the...

    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');
  21. Replies
    44
    Views
    34,018

    Haha! I see. Thank you. Would this be more or...

    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.
    ...
  22. Replies
    44
    Views
    34,018

    Okay. So, programming around endian will be...

    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...
  23. Replies
    44
    Views
    34,018

    I agree with the post Salem, and yes, it'll be...

    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....
  24. Replies
    44
    Views
    34,018

    Yes, but it isn't going to be 3d accelerated....

    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...
  25. Replies
    44
    Views
    34,018

    Okay. I'm going to cut to the chase of why I'm...

    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...
Results 1 to 25 of 32
Page 1 of 2 1 2