[gforth] / gforth / Attic / strsignal.c  

gforth: gforth/Attic/strsignal.c

Diff for /gforth/Attic/strsignal.c between version 1.3 and 1.4

version 1.3, Tue Nov 7 18:07:01 1995 UTC version 1.4, Sat Dec 23 16:22:00 1995 UTC
Line 20 
Line 20 
 */  */
   
 #include <stdio.h>  #include <stdio.h>
   #include <signal.h>
   
   
 char *strsignal(int sig)  char *strsignal(int sig)
 {  {
   /* !! use sys_siglist; how do I find out how many sigs there are? */    static char errbuf[16];
   static char errbuf[50];  
   #if defined(HAVE_SYS_SIGLIST) && defined(NSIG)
     if (sig>0 && sig<NSIG)
       return sys_siglist[sig];
   #endif
   sprintf(errbuf,"signal %d",sig);    sprintf(errbuf,"signal %d",sig);
   return errbuf;    return errbuf;
 }  }


Generate output suitable for use with a patch program
Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help