Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!uhccux!virtue!comp.vuw.ac.nz!munnari.oz.au!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.eiffel Subject: Re: Catching signals Keywords: Patch for Eiffel 2.2B: rescue clause ignored in package Message-ID: <3463@goanna.cs.rmit.oz.au> Date: 24 Jul 90 06:40:34 GMT References: <375@eiffel.UUCP> Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 17 In article <375@eiffel.UUCP>, jp@eiffel.UUCP (Jean-Pierre Sarkis) writes: > PATCH: > static void rout_conv(rout_nm, classnum, routnum) > char *rout_nm; >... sprintf(rout_nm, "%s", " "); >... sprintf(rout_nm, "%s", "create"); >... sprintf(rout_nm, "%s", "put"); >... sprintf(rout_nm, "%s", "item"); >... sprintf(rout_nm, "%s", Rout_names[classnum][routnum]); >... sprintf(rout_nm, "(NULL)"); I suppose this is more of a comp.lang.c question than a comp.lang.eiffel question, but what do the calls to sprintf() here buy you that calls to strcpy() wouldn't? -- Science is all about asking the right questions. | ok@goanna.cs.rmit.oz.au I'm afraid you just asked one of the wrong ones. | (quote from Playfair)