From 1d79a041ba98eabfef91b4b8cde59d4ab2cf1411 Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Sun, 15 Mar 2015 13:00:46 +0100 Subject: [PATCH] i/c/str.h: whitespace cleanup, reformatting, no changes Just some cleanup like whitespace, punctiation marking and indentation issues. --- include/coap/str.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/coap/str.h b/include/coap/str.h index 7c10ce8a..92784ef1 100644 --- a/include/coap/str.h +++ b/include/coap/str.h @@ -3,7 +3,7 @@ * Copyright (C) 2010,2011 Olaf Bergmann * * This file is part of the CoAP library libcoap. Please see - * README for terms of use. + * README for terms of use. */ #ifndef _COAP_STR_H_ @@ -12,19 +12,21 @@ #include typedef struct { - size_t length; /* length of string */ - unsigned char *s; /* string data */ + size_t length; /* length of string */ + unsigned char *s; /* string data */ } str; #define COAP_SET_STR(st,l,v) { (st)->length = (l), (st)->s = (v); } /** - * Returns a new string object with at least size bytes storage - * allocated. The string must be released using coap_delete_string(); + * Returns a new string object with at least size bytes storage allocated. The + * string must be released using coap_delete_string(); */ str *coap_new_string(size_t size); -/** Deletes the given string and releases any memory allocated. */ +/** + * Deletes the given string and releases any memory allocated. + */ void coap_delete_string(str *); #endif /* _COAP_STR_H_ */