Hello.
Could you tell me what are the standard methods of GNU for checking data types have? For example: I receive UDP packet and i unknow what data is?
i = (int)recvncfrom( s, (void **)&pBuf, 0,(struct sockaddr *)&sin1, &tmp, &hBuffer );
I want to check each member element - it is a character, or integer, or double ...
For example in Microsoft VS it maybe use operator 'is'.
int i = 23;
object iBoxed = i;
int ? jNullable = 7;
if (iBoxed is int a && jNullable is int b) {
Console.WriteLine(a + b); // output 30
}
Is there anything similar in GNU?
Can you tell me other methods how to do it quickly?
Regards, Dmitry.