Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!cica!burleigh From: burleigh@cica.cica.indiana.edu (Frank Burleigh) Newsgroups: comp.sys.ibm.pc Subject: TC function returns rubbish. why? Keywords: TC20 char *function returns bad data Message-ID: <272@cica.cica.indiana.edu> Date: 7 Dec 89 06:19:48 GMT Distribution: na Organization: IU, Bloomington Lines: 76 Please observe the following (reduced) function and, below it, a function returning pointer to char, which it calls: void mark_cmp( char flag ) { int i; unsigned memleft; char sav_str[13], *p, *q; newfblk **f; ... f = fp; memleft = coreleft(); for( i = 0; i < files; i++ ) { if( !((*f)->f_attrib & FA_DIREC) ) { p = (*f)->f_name; q = make_fn( p ); /*