common: Move psf_isprint() to source file

This commit is contained in:
evpobr 2021-03-05 12:02:01 +05:00
parent 6477f6cd83
commit 1578687eb3
2 changed files with 6 additions and 4 deletions

View File

@ -1221,6 +1221,11 @@ psf_log_SF_INFO (SF_PRIVATE *psf)
/*======================================================================================== /*========================================================================================
*/ */
int
psf_isprint (int ch)
{ return (ch >= ' ' && ch <= '~') ;
} /* psf_isprint */
void void
psf_strlcat (char *dest, size_t n, const char *src) psf_strlcat (char *dest, size_t n, const char *src)
{ strncat (dest, src, n - strlen (dest) - 1) ; { strncat (dest, src, n - strlen (dest) - 1) ;

View File

@ -306,10 +306,7 @@ void *psf_memdup (const void *src, size_t n) ;
** This version of isprint specifically ignores any locale info. Its used for ** This version of isprint specifically ignores any locale info. Its used for
** determining which characters can be printed in things like hexdumps. ** determining which characters can be printed in things like hexdumps.
*/ */
static inline int int psf_isprint (int ch) ;
psf_isprint (int ch)
{ return (ch >= ' ' && ch <= '~') ;
} /* psf_isprint */
/*======================================================================================= /*=======================================================================================
** SF_PRIVATE stuct - a pointer to this struct is passed back to the caller of the ** SF_PRIVATE stuct - a pointer to this struct is passed back to the caller of the