char *item, **ptr;
item = strndup(locstr, length);
if (item != NULL) {
/* normalize in lower case */
for (i = 0 ; item[i] ; i++)
char *item, **ptr;
item = strndup(locstr, length);
if (item != NULL) {
/* normalize in lower case */
for (i = 0 ; item[i] ; i++)