0

I've come across the following function declaration:

int function_name(uint8_t* input1, int input2)

What is the purpose of declaring a pointer in this way? Is it any different from usual:

uint8_t *input1
andrey
  • 1,515
  • 5
  • 23
  • 39
  • There is no difference. Just a different convention that some people prefer. – wolfPack88 Jun 16 '14 at 13:14
  • We who do uint8_t* look at the * as part of the type. But it's up to you how you do it. :) – Almo Jun 16 '14 at 13:14
  • 2
    Maybe have a look here: http://stackoverflow.com/questions/6990726/correct-way-of-declaring-pointer-variables-in-c-c/6990768#6990768 – mafso Jun 16 '14 at 13:15

1 Answers1

0

No, whitespace in this location doesn't matter in C.

unwind
  • 391,730
  • 64
  • 469
  • 606