30

en fait y'a un rom_call qui le fait!
Function (ROM Call 0x83)

void SymCpy0 (char *dest, const char *src);

Copies a symbol name with putting zero byte at the end.
SymCpy0 first performs SymCpy, then puts the zero byte in ninth byte of the string pointed to by dest (i.e. in dest[8]). So, dest must be at least 9 bytes long.
ET
Function (ROM Call 0x82)

void SymCpy (char *dest, const char *src);

Copies a symbol name.

SymCpy copies at most 8 characters from string src to dest, then fills rest of the dest up to 8 bytes, so dest must be at least 8 bytes long. It seems that calling this function is equal to

strncpy (dest, src, 8);
except in the fact that function SymCpy is void. See strncpy for more info.

pas besoin de se prendre la tete smile

31

vrai que c piege pr les debuttants smile
mais bon, c ce qui fait la diffrence entre ceux qui essayent de comprendre et ceuxqui ont compris


(LOL !!!! grin)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

32

Les cocus, ils avaient tout prévus!
Un newbie c'est là pour apprendre.
Bravo Boo et Yaro,votre site est génial!