STRING: add prints() for printing
This commit is contained in:
parent
e0b75b98e2
commit
fd9ac4ecb8
@ -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)
|
||||
|
@ -51,6 +51,9 @@ struct string {
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
prints(string *print_string);
|
||||
|
||||
/**
|
||||
* Delete the inner structure
|
||||
* of the string and frees the string
|
||||
|
Loading…
Reference in New Issue
Block a user