
short expr_create(const short num, const char *filename)
{
//Init temp variable
FILE *pfile;
//Open the file for writing, if it already exists it will be overwritten
pfile = fopen(filename,"wb");
//Puts the starting signature
fputc(0x00, pfile);
fputc(0x03, pfile);
//Puts the value
fputc(num, pfile);
//Puts the ending signature
fputc(0x01, pfile);
//Put the POSINT_TAG tag, for positive integer
fputc(POSINT_TAG , pfile);
//Closes and saves the changes
fclose(pfile);
//Returns Ok
return TRUE;
}
en utilisant cette fonction pour mettre r a 0 et ensuite le ti-basic ne reconnait pas r comme a 0 pourtant il dit qu'il est a 0!?