This snippet basically shows you how to input a password from the user without actually displaying the characters, instead they are replaced with the ' * ' character as you type.
The code is uncommented, so I will briefly explain it.
This function: void PasswordInput(char *password, size_t maxLength)
has two parameters, the first one is a pointer to a buffer containing enough free space to input up to maxLength number of characters.