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...
Type: Posts; User: Hennet
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...
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...
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...
Thank you for your response.
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,...
Ah I see.
Thank you for your time.
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...
Indeed that'd be troublesome, I didn't think of it.
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...
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...
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(...
Thank you, removing the asterisk did it.
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...
use %s then throw the var into atoi(). you won't crash and still it'll be numerical-only.
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...