slang-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] SLang_restart, SLang_load_file returning -1, how do I restart?


On Fri, 2004-01-02 at 13:51, Jeremy Cowgar wrote:
> do alot of other things, and when the user wants to run a script:
> 
>   if(SLang_load_file(filename) == -1)
>       SLang_restart(1);
> 

Forget it, dumb question. I solved it. I *did* read the manual, I don't
know why I missed the critical element:

  if(SLang_load_file(filename) == -1) {
      SLang_restart(1);
      SLang_Error = 0;
  }

Sorry about that, but hey, now it's searchable in the mailing list
archives ;-)

----
jeremy <jc@xxxxxxxxxx>

The box said Windoze 95 or greater, so I installed Linux!

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]