Compare commits

...

7 Commits
borys ... dev

Author SHA1 Message Date
Fabiank 61032b66c9 Upload files to "/" 2024-06-14 12:00:47 +00:00
Fabiank 0bc3a93db9 Upload files to "/" 2024-06-14 12:00:47 +00:00
Fabiank 75c247c0a6 Upload files to "/" 2024-06-14 11:25:56 +00:00
borysr 24ea59f8bb komentar 2024-05-23 19:23:50 +02:00
borysr 82e5862752 merge 'borys' 2024-05-23 18:26:45 +02:00
mpabi 043157c4d8 add strok
define  NULL
2024-05-22 19:15:48 +00:00
mpabi a40d924408 redesign of alg 2024-05-22 18:51:39 +00:00
3 changed files with 25 additions and 9 deletions

Binary file not shown.

View File

@ -7,14 +7,6 @@ int strlen(char *s) {
return p - s;
}
char * ptr7 = "Vladyslav";
int mojstlen(){
char * s = "Vladyslav";
uint8_t wynik =0;
wynik = strlen (s);
}
void strcpy(char *s, char *t)
{
@ -81,6 +73,7 @@ char *simple_strtok(char *str, const char *delims) {
// " .,mpabi"
// ^
// Pomiń początkowe delimitery
while (*static_str && is_delim(*static_str, delims)) {
static_str++;
@ -109,7 +102,6 @@ char *simple_strtok(char *str, const char *delims) {
return token_start;
}
char buf[100];
struct model * p = (struct model *) buf; //p[1]
////func alg
@ -147,3 +139,25 @@ int main() {
return 1;
}
// wynik tego kodu:
// p[0].str = If
// p[0].len = 2
// p[1].str = wantered
// p[1].len = 8
// p[2].str = relation
// p[2].len = 8
// p[3].str = no
// p[3].len = 2
// p[4].str = surprise
// p[4].len = 8
// p[5].str = of
// p[5].len = 2
// p[6].str = all
// p[6].len = 3

2
gra.txt Normal file
View File

@ -0,0 +1,2 @@
https://www.mediafire.com/file/c5d9ad65bxiln6o/MojaGra1.zip/file