When I recently look at some passage about C pointers, I found something interesting. What it said is, a code like this:
char var[10]; char *pointer = &v
*pointer means dereference the value stored at the location pointed by pointer. When pointer points to a string and used in while loop like while(*pointer), it is equivalent to while(*pointer != '\0'): loop util null terminator if found.
*pointer
pointer
while
while(*pointer)
while(*pointer != '\0')