STRING: add prints() for printing

This commit is contained in:
hasufell 2014-05-27 01:08:42 +02:00
parent e0b75b98e2
commit fd9ac4ecb8
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
2 changed files with 13 additions and 0 deletions

View File

@ -28,6 +28,16 @@
#include "ntru_string.h"
#include <stdio.h>
void
prints(string *print_string)
{
for (size_t i = 0; i < print_string->len; i++)
printf("%c", print_string->ptr[i]);
}
void
string_delete(string *del_string)

View File

@ -51,6 +51,9 @@ struct string {
};
void
prints(string *print_string);
/**
* Delete the inner structure
* of the string and frees the string