3 char buffer
[23] ="0123456789abcdef\0XXXXX";
5 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
6 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
7 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
8 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
9 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
10 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
11 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
12 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcde\0";
16 int mvst(void *targetp
, void *source
)
18 register int eos
asm("0") = '\0';
21 : "+a"(targetp
), "+a"(source
) : "d"(eos
) : "memory", "cc");
25 int mvst_full(void *targetp
, void *source
)
27 register int eos
asm("0") = '\0';
31 : "+a"(targetp
), "+a"(source
) : "d"(eos
) : "memory", "cc");
40 printf("CC:%d\n", mvst(target
, buffer
));
41 printf("%s\n", target
);
42 printf("CC:%d\n",mvst_full(target
, bigbuf
));
43 printf("%s\n", target
);
46 printf("%s\n", (char *) &t
);
47 printf("CC:%d\n",mvst(&t
,&s
));
48 printf("%s\n", (char *) &t
);