/[cvs]/joko/Uni/BSArch/01/prime.c
ViewVC logotype

Diff of /joko/Uni/BSArch/01/prime.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by joko, Sat May 13 12:30:54 2006 UTC revision 1.13 by joko, Sat May 13 18:53:54 2006 UTC
# Line 5  Line 5 
5  #include <limits.h>  #include <limits.h>
6  #include <errno.h>  #include <errno.h>
7    
8    #ifdef _MSC_VER
9    #define snprintf _snprintf
10    #endif
11    
12  #define BOOL int  #define BOOL int
13  #define TRUE 1  #define TRUE 1
14  #define FALSE 0  #define FALSE 0
# Line 43  long int convert_number(const char *nptr Line 47  long int convert_number(const char *nptr
47          /* invalid characters? */          /* invalid characters? */
48          if (*endptr != '\0') {          if (*endptr != '\0') {
49                  char message[254];                  char message[254];
50                  snprintf(message, 256, "Could not convert '%s' to a valid number.", nptr);                  snprintf(message, 256, "Could not convert '%s' to a valid (integer) number.", nptr);
51                  PRINTERROR(message);                  PRINTERROR(message);
52                  exit(EXIT_FAILURE);                  exit(EXIT_FAILURE);
53          }          }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed