Folder List.c 448 B

123456789101112131415161718192021222324
  1. // Write the variables in a folder into a list variable
  2. #define RETURN_VALUE dirlist
  3. #define USE_TI89
  4. #define USE_TI92PLUS
  5. #define USE_V200
  6. #include <args.h>
  7. #include <estack.h>
  8. #include <vat.h>
  9. void _main(void)
  10. {
  11. ESI argptr = top_estack;
  12. SYM_ENTRY *SymPtr = SymFindFirst (GetSymstrArg (argptr), 1);
  13. push_END_TAG ();
  14. while (SymPtr)
  15. {
  16. push_ANSI_string (SymPtr->name);
  17. SymPtr = SymFindNext ();
  18. }
  19. push_LIST_TAG ();
  20. }