[BACK]Return to chars.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/chars.c between version 1.42 and 1.43

version 1.42, 2011/05/15 15:47:46 version 1.43, 2011/05/15 22:29:50
Line 26 
Line 26 
 #include <string.h>  #include <string.h>
   
 #include "mandoc.h"  #include "mandoc.h"
   #include "libmandoc.h"
   
 #define PRINT_HI         126  #define PRINT_HI         126
 #define PRINT_LO         32  #define PRINT_LO         32
Line 148  mchars_num2char(const char *p, size_t sz)
Line 149  mchars_num2char(const char *p, size_t sz)
 {  {
         int               i;          int               i;
   
         if (sz > 3)          if ((i = mandoc_strntou(p, sz, 10)) < 0)
                 return('\0');                  return('\0');
   
         i = atoi(p);  
         /* LINTED */  
         return(isprint(i) ? i : '\0');          return(isprint(i) ? i : '\0');
 }  }
   

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

CVSweb