コンパイルしようとしているプログラムがありますが、コンパイル エラーが表示されます: 22 行目: "invalid operands to binary ==" さまざまな利用可能なソリューションを検索しましたが、問題の解決策が見つかりませんでした。コードは次のとおりです。
#include <stdio.h>
typedef struct nx_string_t
{
char *buf;
}nx_string_t;
typedef struct nx_value_t
{
union
{
nx_string_t strng;
}
} nx_value_t;
void func(nx_value_t *vale);
void func(nx_value_t *vale)
{
if(vale->strng == NULL) // Error occurs here.
{
printf("its done");
}
}