update the struct test so that field c of the test struct is of type double

This commit is contained in:
2020-03-09 13:49:09 +01:00
parent fc16663dae
commit 1f8de66751
3 changed files with 12 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ struct testStruct
{
long a;
bool b;
long c;
double c;
};
struct testStructRec
@@ -13,16 +13,16 @@ struct testStructRec
struct testStructRec *b;
};
struct testStruct* getTestStruct(long a, bool b, long c);
struct testStruct* getTestStruct(long a, bool b, double c);
struct testStructRec* getTestStructRec(long a, struct testStructRec* b);
long getStructFieldA(struct testStruct *);
bool getStructFieldB(struct testStruct *);
long getStructFieldC(struct testStruct *);
double getStructFieldC(struct testStruct *);
struct testStruct *setStructFieldA(struct testStruct *t, long a);
struct testStruct *setStructFieldB(struct testStruct *t, bool b);
struct testStruct *setStructFieldC(struct testStruct *t, long c);
struct testStruct *setStructFieldC(struct testStruct *t, double c);
long getStructFieldRecA(struct testStructRec *t);
struct testStructRec *getStructFieldRecB(struct testStructRec *t);