public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
288e813
)
Better ANSI C compatibility and portability - part 1:
author
carl
<cecodere@yahoo.ca>
Mon, 18 Feb 2019 16:35:24 +0000
(
00:35
+0800)
committer
carl
<cecodere@yahoo.ca>
Mon, 18 Feb 2019 16:54:23 +0000
(
00:54
+0800)
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
modules/src/string/bts2str.c
patch
|
blob
|
history
diff --git
a/modules/src/string/bts2str.c
b/modules/src/string/bts2str.c
index
8d0cb05
..
2caf14b
100644
(file)
--- 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;