STRING: provide function for deleting strings

This commit is contained in:
2014-05-26 21:38:39 +02:00
parent 4dbfe1e663
commit ff3967f932
3 changed files with 24 additions and 1 deletions

View File

@@ -51,4 +51,16 @@ struct string {
};
/**
* Delete the inner structure
* of the string and frees the string
* itself from the heap. Must not be
* called on stack variables.
*
* @param del_string the string to delete
*/
void
string_delete(string *del_string);
#endif /* NTRU_STRING_H */