Write a function that initializes all elements of
a character array to blanks. The function should take
two arguments. The first is a pointer to a character
array. The second is the number of elements in the
array. DO NOT USE BRACES '[' or ']' IN YOUR SOLUTION.
This is what I have does it look right?:
void blank (void)
{
char buff[50];
char *ptr;
ptr = buff;
*ptr = '\0';
puts (buff);
}
Thanks mattz