diff options
author | hunt <hunt> | 2005-05-17 08:02:30 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-05-17 08:02:30 +0000 |
commit | 43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f (patch) | |
tree | 89edd85aa491b4f9632d10705fcd68c04fc98db3 /runtime/string.c | |
parent | 30add090cbcbb6367c06c8bcc3c270e60c2f928e (diff) | |
download | systemtap-steved-43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f.tar.gz systemtap-steved-43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f.tar.xz systemtap-steved-43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f.zip |
Rewritten maps and other updated files.
Diffstat (limited to 'runtime/string.c')
-rw-r--r-- | runtime/string.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/string.c b/runtime/string.c index b6432b76..574daac3 100644 --- a/runtime/string.c +++ b/runtime/string.c @@ -127,6 +127,15 @@ void _stp_string_cat_string (String str1, String str2) str1->len += num; } + +void _stp_string_to_ascii (String str) +{ + char *ptr = str->buf; + int num = str->len; + while (num--) + *ptr = toascii(*ptr); +} + /** Get a pointer to String's buffer * For rare cases when a C string is needed and you have a String. * One example is when you want to print a String with _stp_printf(). |