diff options
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r-- | src/mm-modem-helpers.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index e835eb9b..dd1b8c36 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -430,3 +430,19 @@ mm_gsm_parse_creg_response (GMatchInfo *info, return TRUE; } +/*************************************************************************/ + +const char * +mm_strip_tag (const char *str, const char *cmd) +{ + const char *p = str; + + if (p) { + if (!strncmp (p, cmd, strlen (cmd))) + p += strlen (cmd); + while (isspace (*p)) + p++; + } + return p; +} + |