summaryrefslogtreecommitdiff
path: root/sysdeps/linux/glibtop_private.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/linux/glibtop_private.c')
-rw-r--r--sysdeps/linux/glibtop_private.c18
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
*/