diff options
author | Yann Collet <cyan@fb.com> | 2019-07-12 00:29:16 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-07-12 00:29:16 (GMT) |
commit | f1e8e806e0dd753eb48e40272e620f747c7b723e (patch) | |
tree | 52406e549c22cb23cb55d6e8e0885567e37918c2 | |
parent | 23bd36918e8d0f312998d062c9b01001a5c29f17 (diff) | |
download | lz4-f1e8e806e0dd753eb48e40272e620f747c7b723e.zip lz4-f1e8e806e0dd753eb48e40272e620f747c7b723e.tar.gz lz4-f1e8e806e0dd753eb48e40272e620f747c7b723e.tar.bz2 |
keep the "lorem ipsum" topic of the example string
but make it compressible
-rw-r--r-- | examples/simple_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple_buffer.c b/examples/simple_buffer.c index ea57022..6afc62a 100644 --- a/examples/simple_buffer.c +++ b/examples/simple_buffer.c @@ -38,7 +38,7 @@ int main(void) { /* Compression */ // We'll store some text into a variable pointed to by *src to be compressed later. - const char* const src = "Lorem ipsum dolor sit amet, hhhhhhhhhhhhhhhhhhhhhhh"; + const char* const src = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor site amat."; // The compression function needs to know how many bytes exist. Since we're using a string, we can use strlen() + 1 (for \0). const int src_size = (int)(strlen(src) + 1); // LZ4 provides a function that will tell you the maximum size of compressed output based on input data via LZ4_compressBound(). |