This commit is contained in:
borysr 2024-05-22 13:50:59 +02:00
parent 6138fc8f1c
commit 522d5e2176
1 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,6 @@
#include <stdint.h> #include <stdint.h>
int strlen(char *s) int strlen(char *s)
{ {
char *p = s; char *p = s;
@ -36,13 +37,17 @@ char *alloc(int n)
int main() { int main() {
struct key{ struct key{
char *word; char *ptr;
int8_t count; int8_t count;
} keytab[10]; } keytab[10];
struct key * Ptr = (struct key *) alloc(100); struct key * ptr1 = (struct key *) alloc(100);
ptr1[0].ptr = p1;
ptr1[0].count = strlen(ptr1[0].ptr);
asm ("nop"); asm ("nop");
return 1; return 1;
} }