mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 01:49:53 +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
|
||||
psf_strlcat (char *dest, size_t n, const char *src)
|
||||
{ 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
|
||||
** determining which characters can be printed in things like hexdumps.
|
||||
*/
|
||||
static inline int
|
||||
psf_isprint (int ch)
|
||||
{ return (ch >= ' ' && ch <= '~') ;
|
||||
} /* psf_isprint */
|
||||
int psf_isprint (int ch) ;
|
||||
|
||||
/*=======================================================================================
|
||||
** SF_PRIVATE stuct - a pointer to this struct is passed back to the caller of the
|
||||
|
Loading…
Reference in New Issue
Block a user