Fonction Scilab
eng - fr


write_inf_doc - retourne le texte de la documentation pour le script de construction de la boîte à outils

Librairie

Séquence d'appel

txt = write_inf_doc(u)

Paramètres

Description

Add here a paragraph of the function description. Other paragraph can be added

Add here a paragraph of the function description

Exemple

Add here scilab instructions and comments

Contenu du fichier


//write_inf_doc
//Entrée : u : file descriptor
//Sortie : txt : Information utile de chargement
//         flag :
function txt=write_inf_doc(u)

  txt=[];
  tt='myhelps=[MODNUM+''/man/htm/''+lang,""Modnum communication toolbox""];';
  tt2='add_demo(''Mod_num'',MODNUM+''/man/demos/mod_num.dem'');'
  if MSDOS then
    tt=pathconvert(tt,%f,%t,'w')
    tt2=pathconvert(tt2,%f,%t,'w')
  end

  tt_loader=['//find the LANGUAGE'
             'if ~exists(''LANGUAGE'') then'
             ' global LANGUAGE;lang=LANGUAGE;clear LANGUAGE;'
             'else'
             ' lang=LANGUAGE;'
             'end'
             'if lang<>''fr''&lang<>''eng'' then'
             '  printf(""Documentation: Unsupported language %s, switch to eng.\n"",lang);'
             '  lang=''eng'';'
             'end'
             '//Add mod_num help chapter'
             tt
             '%helps=[%helps;myhelps(1,:)];'
             '//Add mod_num demo'
             tt2
             'clear myhelps;clear lang'
             ]
  txt=[tt_loader(2:10);tt_loader(12:13);tt_loader(15:16)];
  if exists('u') then
   fprintf(u,"%s\n",tt_loader);
  end

endfunction

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references