Skip to content
This repository was archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #66 from egormanga/improve-test.c-reliability
Browse files Browse the repository at this point in the history
Improved `test.c` reliability
  • Loading branch information
dgruss authored May 30, 2022
2 parents ba74b3c + b0dc99b commit 094b4be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "libkdump.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -31,6 +32,8 @@ int main(int argc, char *argv[]) {
printf(" Got: \x1b[33;1m");
while (index < strlen(test)) {
int value = libkdump_read((size_t)(test + index));
if (!isprint(value))
continue;
printf("%c", value);
fflush(stdout);
index++;
Expand Down

0 comments on commit 094b4be

Please sign in to comment.