Is this code correct? It runs as expected, but is this code correctly using the pointers and dot notation for the struct?
struct someStruct { unsigned int t
Yes, its correct usage of structures. You can also use
typedef struct someStruct { unsigned int total; } someStruct;
Then you won't have to write struct someStruct s; again and again but can use someStruct s; then.
struct someStruct s;
someStruct s;