Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/ntpd/refclock_parse.c
Show First 20 Lines • Show All 1,624 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#ifndef isprint | #ifndef isprint | ||||
#define isprint(_X_) (((_X_) > 0x1F) && ((_X_) < 0x7F)) | #define isprint(_X_) (((_X_) > 0x1F) && ((_X_) < 0x7F)) | ||||
#endif | #endif | ||||
static char * | static char * | ||||
mkreadable( | mkreadable( | ||||
char *buffer, | char *buffer, | ||||
long blen, | size_t blen, | ||||
const char *src, | const char *src, | ||||
u_long srclen, | size_t srclen, | ||||
int hex | int hex | ||||
) | ) | ||||
{ | { | ||||
static const char ellipsis[] = "..."; | static const char ellipsis[] = "..."; | ||||
char *b = buffer; | char *b = buffer; | ||||
char *endb = NULL; | char *endb = NULL; | ||||
if (blen < 4) | if (blen < 4) | ||||
▲ Show 20 Lines • Show All 4,576 Lines • Show Last 20 Lines |