Skip to content

Commit 93d736b

Browse files
some fixes
1 parent d14ef28 commit 93d736b

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

libary/opt9.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ b has_opt9_get(u8 argc, s* argv, i8 key)
3131
return false;
3232
}
3333

34-
u8 fn_opt9_get(u8 argc, s* argv, i8 key, i8 value, u8 flags)
34+
u8 fn_opt9_get(u8 argc, s* argv, i8 key, i8 value, u16 flags)
3535
{
3636
u8 i = 0;
3737

libary/str9.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ i8 str9_stack(char* txt, i8 new_char)
6060
return old_char;
6161
}
6262

63-
b str9_palindrome(const char* txt)
63+
b str9_palindrome(char* txt)
6464
{
6565
return (
6666
(txt[0] == txt[8]) &&
@@ -79,6 +79,7 @@ i32 str9_cast(char* txt, i32 value)
7979
value = (value / 10);
8080
}
8181
while(i);
82+
return value;
8283
}
8384

8485
#endif

libary/types9.c

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ typedef unsigned int u32;
77

88
typedef signed int i32;
99

10+
typedef unsigned short u16;
11+
1012
typedef unsigned char u8;
1113

1214
typedef signed char i8;

tools/pcp9_cousin.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ static const char txt_title[34] =
99
"repeat the 9-digit prime numbers.\n"
1010
;
1111

12-
int main(u8 argc, s* argv)
12+
int main(int argc, char** argv)
1313
{
1414
u32 number;
1515
u8 buffer[10] = "";

tools/pcp9_palindrome.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ static const char txt_title[37] =
99
"repeat the 9-character palindromes.\n"
1010
;
1111

12-
int main(u8 argc, s* argv)
12+
int main(int argc, char** argv)
1313
{
1414
b number;
1515
u8 buffer[10] = "";

tools/pcp9_pos.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static const char txt_help[] =
2121
static const char txt_search[11] = "the search ";
2222
static const char txt_at_pos[8] = "at pos: ";
2323

24-
int main(u8 argc, s* argv)
24+
int main(int argc, char** argv)
2525
{
2626
i8 c;
2727
u32 pos = 0;

tools/pcp9_slicer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static const char txt_fn_errorh[] = "the header ";
2121
static const char txt_fn_errorg[] = "is greater than the ";
2222
static const char txt_trash[] = "trash:\n \"";
2323

24-
u8 main(u8 argc, s* argv)
24+
int main(int argc, char** argv)
2525
{
2626
u8 buffer[10] = "";
2727
u8 exitcode = 0, size = 0;

0 commit comments

Comments
 (0)