I have a subroutine that receives a filename from another. This sub has worked with three other calling programs but, today, I added another and for some reason it finds some other file name to use. iow, I call the routine xml_load_file(D EALS) where DEALS is elsewhere defined as "../options/deals.xml". The argument is defined as a char*. If I print out the filename at the beginning of xml_load_file() , it shows an entirely different path and file: ../carts/12345 which is a legitimate filename but I don't have a clue how it got that.
What really throws me for a loop is I create "test_load( char *p)" which does nothing but print out what *p is, put it in the same file as xml_load_file() and that shows the correct file name.
Does this ring a bell with anyone? Using gcc on Linux.
What really throws me for a loop is I create "test_load( char *p)" which does nothing but print out what *p is, put it in the same file as xml_load_file() and that shows the correct file name.
Does this ring a bell with anyone? Using gcc on Linux.
Comment