diff options
author | James Dominic P. Guana <guana.histark@gmail.com> | 2020-05-23 08:26:34 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2020-11-04 13:38:03 +0000 |
commit | 9e62440b314fbf87bbeca865a4223311314c52a3 (patch) | |
tree | a2d4e2598e52ba8863182d76515caaed1dce65ab /sysdeps/linux/glibtop_private.c | |
parent | d49e17039e5ba43ab22e284b9764842011909984 (diff) | |
download | libgtop-9e62440b314fbf87bbeca865a4223311314c52a3.tar.gz |
New API to retrieve disk stats in Linux
Diffstat (limited to 'sysdeps/linux/glibtop_private.c')
-rw-r--r-- | sysdeps/linux/glibtop_private.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sysdeps/linux/glibtop_private.c b/sysdeps/linux/glibtop_private.c index d3a49aa6..7b36561c 100644 --- a/sysdeps/linux/glibtop_private.c +++ b/sysdeps/linux/glibtop_private.c @@ -57,6 +57,24 @@ skip_token (const char *p) } +int +check_alphanumeric_word (const char *p) +{ + int test = 0; + p = next_token(p); + while (*p && !g_ascii_isspace(*p)) { + if(g_ascii_isalpha(*p)){ + test = 0; + }else if(g_ascii_isdigit(*p)){ + test = 1; + } + p++; + }; + p = next_token(p); + return test; +} + + /* * Read functions */ |