The given code works whether argv is an array name or a pointer. In C, except in the context of 'sizeof', an array name 'decays' into a pointer to the first element of the array. Bob Ammerman RAm Systems -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics