version 1.42, 2011/05/15 15:47:46 |
version 1.43, 2011/05/15 22:29:50 |
|
|
#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'); |
} |
} |
|
|