i/c/str.h: whitespace cleanup, reformatting, no changes

Just some cleanup like whitespace, punctiation marking and indentation
issues.
This commit is contained in:
Carsten Schoenert authored and Olaf Bergmann committed 2015-04-14 16:05:42 +02:00
1 parent a21adde03e
commit 1d79a041ba
1 file changed
+8 -6
+8 -6
View File
@@ -3,7 +3,7 @@
* Copyright (C) 2010,2011 Olaf Bergmann <bergmann@tzi.org>
*
* 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 <string.h>
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_ */