2024-03-18 10:11:23 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2024-05-16 09:30:18 +00:00
|
|
|
char * ptr1 = "Dominik P";
|
2024-03-18 10:11:23 +00:00
|
|
|
|
2024-05-16 06:34:58 +00:00
|
|
|
int strlen(char *s)
|
|
|
|
{
|
|
|
|
char *p = s;
|
|
|
|
while (*p != '\0')
|
|
|
|
p++;
|
|
|
|
return p - s;
|
|
|
|
}
|
2024-03-26 09:29:31 +00:00
|
|
|
|
2024-05-16 06:34:58 +00:00
|
|
|
void strcpy(char *s, char *t)
|
|
|
|
{
|
|
|
|
while (*s++ = *t++);
|
2024-03-26 09:29:31 +00:00
|
|
|
}
|
|
|
|
|
2024-03-18 10:11:23 +00:00
|
|
|
int main() {
|
|
|
|
|
2024-05-16 09:30:18 +00:00
|
|
|
char tab [20];
|
|
|
|
strcpy( tab, ptr1);
|
|
|
|
|
2024-05-16 06:34:58 +00:00
|
|
|
uint8_t wynik =0;
|
2024-05-16 09:30:18 +00:00
|
|
|
wynik = strlen (tab);
|
2024-05-16 06:34:58 +00:00
|
|
|
|
|
|
|
asm("nop");
|
2024-05-16 09:21:42 +00:00
|
|
|
}
|
2024-05-16 06:34:58 +00:00
|
|
|
|
|
|
|
|