A89: Re: Re: Custom Variables


[Prev][Next][Index][Thread]

A89: Re: Re: Custom Variables




It's easy! Here's how to make a variable named "example" with the type "SAV"

FILE *fp = fopen ("example", "wb");
// file data here
fputc (0, fp);
fputs ("SAV", fp);
fputc (0, fp);
fputc (OTH_TAG, fp);
fclose (fp);

and voila! You have a variable named example with type SAV. The only problem
is that these are ANSI functions, and increase the size of the code. Low
level VAT functions are much better.

Michael Cowart



>
> Hello!
>     How do you create custom type variables in the first place?  I didn't
> know you could.  That would be useful.  Just think of it:  LIB type
> variables, instead of ASM for libraries and programs too!
>
>     James Darpinian
>
>
> ----- Original Message -----
> From: Michael Cowart <freakonaleash881@hotmail.com>
>
> > How would I use low level VAT functions to create a custom type variable
> on
> > the calc with TI-GCC?
>
>
>
>



Follow-Ups: References: