From 3214ddfa68e180a74f854884eb80112ec2fd4f47 Mon Sep 17 00:00:00 2001 From: carl Date: Tue, 19 Feb 2019 00:35:24 +0800 Subject: [PATCH] Better ANSI C compatibility and portability - part 1: + Addition of function prototypes. + Change function definitions to ANSI C style. --- modules/src/string/bts2str.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/src/string/bts2str.c b/modules/src/string/bts2str.c index 8d0cb05f5..2caf14bfe 100644 --- a/modules/src/string/bts2str.c +++ b/modules/src/string/bts2str.c @@ -12,10 +12,10 @@ #define is_print(c) ((unsigned)((c) - ' ') <= '~' - ' ') -char * -bts2str(b, n, s) - char *b, *s; - register int n; + + + +char *bts2str(char *b, register int n, char *s) { register char *f = b, *t = s;