From 43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 17 May 2005 08:02:30 +0000 Subject: Rewritten maps and other updated files. --- runtime/string.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/string.c') 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(). -- cgit