When declaring pointers in C, there are 3 variants:
Variant A:
int* ptr;
Variant B:
int *ptr;
Variant C:
int * ptr;
The way a pointer is declared differs depending on the type of documentation I read. Some authors seem to have a preference for certain variants, others use several.
There is absolutely no difference in functionality between
int* ptr;
and
int *ptr;
Which you use is up to you, there are multiple conflicting coding styles to choose from.