1
/* Copyright INRIA/ENPC */
4
#if defined(THINK_C)||defined(__MWERKS__)
5
#include "::graphics:Math.h"
7
#include "../graphics/Math.h"
12
static char *dataStrings[] = {
14
"exec('SCI/scilab.star',-1);", /* start_up instructions file */
15
"exec('SCI/demos/alldems.dem');", /* demos instructions file */
16
"home/scilab.hist", /* history file */
17
"home/scilab.save", /* on crash save file */
18
"exec('SCI/scilab.quit',-1);quit;" /* exit instructions file */
21
/******************************************
22
* get string associated with iopt
23
******************************************/
25
void C2F(inffic)(iopt,name,nc)
29
*nc=strlen(dataStrings[Max(Min(*iopt-1,MAXDATA),0)]);
30
strcpy(name,dataStrings[Max(Min(*iopt-1,MAXDATA),0)]);
33
/******************************************
34
* just get string length
35
******************************************/
37
void C2F(infficl)(iopt,nc)
40
*nc=strlen(dataStrings[Max(Min(*iopt-1,MAXDATA),0)]);