From 08b3491f523dc4ed546affe7753222aab345b9cc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 8 Mar 2004 06:07:47 +0000 Subject: [PATCH] Removed bad str/num funcs --- plugins/include/string.inc | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/plugins/include/string.inc b/plugins/include/string.inc index 11cdd428..b0a6e964 100755 --- a/plugins/include/string.inc +++ b/plugins/include/string.inc @@ -35,16 +35,22 @@ native format(output[] ,len ,const format[] , {Float,_}:...); native format_args(output[] ,len ,pos = 0); /* Converts number to string. */ -native numtostr(num,string[],len); - -stock int_to_str(num, string[], len) - return numtostr(num, string[], len); +native num_to_str(num,string[],len); /* Returns converted string to number. */ -native strtonum(string[]); +native str_to_num(const string[]); -stock str_to_int(string[]) - return strtonum(string) +stock int_to_str(num,string[],len) + return num_to_str(num,string,len) + +stock str_to_int(const string[]) + return str_to_num(string) + +stock numtostr(num,string[],len) + return num_to_str(num,string,len) + +stock strtonum(const string[]) + return str_to_num(string) /* Checks if two strings equal. If len var is set * then there are only c chars comapred. */