Search:

Type: Posts; User: Hennet

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,244

    but later in the code, the following works: ...

    but later in the code, the following works:

    if( instance->upper&8 ) { <print value of upper in console> }
    and it prints 8 (in a entry whose upper value is 8) so yeah I don't get what could be...
  2. Replies
    3
    Views
    1,244

    "Unsigned / int mixup (?)"

    Hello.
    In a struct:


    <...>
    unsigned upper : 4;
    <...>

    The above 'upper' field is populated by a int mySQL field whose value is a bit-field with 4 possible values (that stack, e.g. a row...
  3. Replies
    1
    Views
    908

    "File System Listening" (?)

    Hello.
    Do you know if it it's possible for a app to know whether a specific program's fopen has failed (under windows)? Example of what I'm looking for would be:
    "App A attempts to open file Y...
  4. Replies
    3
    Views
    1,110

    Thank you for your response.

    Thank you for your response.
  5. Replies
    3
    Views
    1,110

    Performance Q: Iterate or aggregate pointers?

    Hello.
    Say I have a thousand instances of a structure, and some of these may be linked to each other due to some criteria that is used on action A.
    Upon running action A for one of these structs,...
  6. Replies
    15
    Views
    10,509

    Ah I see. Thank you for your time.

    Ah I see.
    Thank you for your time.
  7. Replies
    15
    Views
    10,509

    Unsigned : 1; or bool ? C

    I want to know which one uses less memory, I tried looking for it but didn't get a accurate answer.
    Say I have a thousand instances of a C struct, which of the following would be better to sign a...
  8. Thread: Socket Manage

    by Hennet
    Replies
    3
    Views
    2,276

    Indeed that'd be troublesome, I didn't think of...

    Indeed that'd be troublesome, I didn't think of it.
  9. Thread: Socket Manage

    by Hennet
    Replies
    3
    Views
    2,276

    Socket Manage

    Hello!
    I'm a contributor of the open-source/free the mana world game.
    My goal is to be able to identify packet sniffers (or anything else sending data to the game server IP and port that is not the...
  10. Replies
    4
    Views
    1,065

    I guess you didn't get what I meant (or, perhaps,...

    I guess you didn't get what I meant (or, perhaps, I'm pointing non-sense), because I have other defines that set data during the runtime, for example:


    #define seta(comando,str,flag) \
    if...
  11. Replies
    4
    Views
    1,065

    Playing with macros (#define doubt)

    The following code is supposed to take input and call a specific function if found, but due to some mistake of mine it is trying to call the variable name itself.

    #define call_exec(ex) \
    if(...
  12. Replies
    5
    Views
    1,148

    Thank you, removing the asterisk did it.

    Thank you, removing the asterisk did it.
  13. Replies
    5
    Views
    1,148

    Thanks to both of you, I've used Bayint Naung's...

    Thanks to both of you,
    I've used Bayint Naung's solution.
    However I'm now getting 'error: request for member 'req' in something not a structure or union'
    when trying to write on...
  14. use %s then throw the var into atoi(). you won't...

    use %s then throw the var into atoi(). you won't crash and still it'll be numerical-only.
  15. Replies
    5
    Views
    1,148

    Array within Array Doubt.

    Hello,
    I want to create pre-formatted data within a constant struct within other struct, but I get the weird "braces around scalar initializer" from the compiler (Cygwin/warning).
    The code is the...
Results 1 to 15 of 15