Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
Fabiank | 61032b66c9 | |
Fabiank | 0bc3a93db9 | |
Fabiank | 75c247c0a6 | |
borysr | 24ea59f8bb | |
borysr | 82e5862752 | |
mpabi | 043157c4d8 | |
mpabi | a40d924408 |
Binary file not shown.
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue