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>
int strlen(char *s)
{
char *p = s;
@ -36,13 +37,17 @@ char *alloc(int n)
int main() {
struct key{
char *word;
char *ptr;
int8_t count;
} 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");
return 1;
}