diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-10-23 17:42:10 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-10-24 12:37:44 +0200 |
commit | d8f2b38eb96592567398c69bafdb9b3ecb82432e (patch) | |
tree | 6f1ef12143c2174b086034f17d57ec0a23572ff0 | |
parent | 77d08a67b53fe92856cdec9b3da91a980381d0cc (diff) |
osmux_snprintf: Add doxygen doc
Change-Id: Idb3fcf25be9558bfc2f822352c07ebc2cb7d5caa
-rw-r--r-- | src/osmux.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/osmux.c b/src/osmux.c index 0027a51..7beb705 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -892,7 +892,16 @@ static int osmux_snprintf_payload(char *buf, size_t size, return offset; } - +/*! Print osmux header fields and payload from msg into buffer buf. + * \param[out] buf buffer to store the output into + * \param[in] len length of buf in bytes + * \param[in] msgb message buffer containing one or more osmux frames + * \returns the number of characters printed (excluding the null byte used to end output to strings). + * + * If the output was truncated due to this limit, then the return value is the number of characters + * (excluding the terminating null byte) which would have been written to the final string if enough + * space had been available. + */ int osmux_snprintf(char *buf, size_t size, struct msgb *msg) { unsigned int remain = size; |