From 9a5c8a354761ddfb5382893162c16821425f5bea Mon Sep 17 00:00:00 2001 From: TLINDEN Date: Sun, 23 Feb 2014 11:04:15 +0100 Subject: [PATCH] added doc --- include/pcp/z85.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/pcp/z85.h b/include/pcp/z85.h index ca28c75..0b49dcb 100644 --- a/include/pcp/z85.h +++ b/include/pcp/z85.h @@ -122,6 +122,13 @@ char *pcp_readz85file(FILE *infile); */ char *pcp_readz85string(unsigned char *input, size_t bufsize); +/** Determine if a buffer is binary or ascii. + + \param[in] buf The buffer to check. + \param[in] len Len of the buffer. + \return Returns 0 if the input is ascii or a number > 0 if + it contains binary data. +*/ size_t _buffer_is_binary(unsigned char *buf, size_t len); #endif /* _HAVE_PCP_Z85_H */