"
#include <stdio.h>

struct datastructure
{
char character;
};


void function(struct datastructure** ptr);


int main()
{
struct datastructure trial;
struct datastructure *structPtr;
structPtr=&trial;
structPtr->character='a';
function(&structPtr);
}


void function(struct datastructure** ptr)
{
*ptr->character='a';
printf("Ptr: &#37;c",*ptr->character);
}
"

These codes give these errors:
error: request for member 'character' in '* ptr', which is of non-class type 'datastructure*'
error: request for member 'character' in '* ptr', which is of non-class type 'datastructure*'


these errors are related to
"
*ptr->character='a';
printf("Ptr: %c",*ptr->character);
"

I want to access "character" data inside the structure "trial" by a pointer to pointer "ptr" inside function "function",but I couldn't find a way to do this.