Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!fuug!funic!santra!puukko.hut.fi!s36572u From: s36572u@puukko.hut.fi (Karl Tigerstedt) Newsgroups: comp.sys.mac.programmer Subject: Problem with Think C! HELP! Message-ID: <1991Feb27.221632.23341@santra.uucp> Date: 27 Feb 91 22:16:32 GMT Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: s36572u@puukko.hut.fi (Karl Tigerstedt) Organization: Helsinki University of Technology, FINLAND Lines: 30 I'm having problems with Think C. The situation: I call a function (my own function, called "void filename(....) ... "). The function seems to do it's job fine. BUT, when returning to the calling (parent) function, execution advances not on the very next line, which it should do, instead it SKIPS one line, and the execution then continues....!? Here's the code: if (e > 'z') { e = 'a'; d++; } filename(filet,d,e,langd); /* here's the function call */ printf("What's happening 1?\n"); printf("What's happening 2?\n"); /* It continues HERE ...? */ printf("Output file is called %s \n",filet); ut = fopen(filet,"w"); In other words, the "Happening #1" is never executed! I was almost going crazy, until I noticed how it worked. BUT, I still don't know WHY ???? --------------------------------------------------------------------------- "I have only come here seeking knowledge. Things they would not teach me of in college" - The Police *** Karl Tigerstedt , email s36572u@puukko.hut.fi ***