mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
common: Move psf_isprint() to source file
This commit is contained in:
parent
6477f6cd83
commit
1578687eb3
@ -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) ;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user