This function takes the following parameters:
The specified map object.
Pointer specifying the location of the entry iterator.
If entry_iter_ptr is not NULL, the location it refers to will be set to NULL if an error is returned.