[scilab-Users] printing a message in the scilab console from a C external function

Calixte Denizet calixte at contrib.scilab.org
Wed Apr 6 14:19:00 CEST 2011


Hi,

maybe with sciprint("A string %s\n", "hello"); and #include
"sciprint.h".

Calixte

Le mercredi 06 avril 2011 à 14:04 +0200, Adrien Vogt-Schilb a écrit :
> Hi
> 
> Does anyone know how to print a message in the scilab console from a C
> external function.
> 
> I am using a dirty workaround : 
> 
> voir myfunction(..)
> 
> [...]
> FILE *fp;
> fp = fopen("myfile.txt","a");
> for x...
>    fprintf(fp,"x[%i]=%g \n",k,x[k]);
> 
> fclose(fp)
> 
> 
> this succesfully writes messages in myfile.txt, i would like to print
> to the scilab console instead
> 
> 
> thank you all
> 
> -- 
> 
> 
> Adrien Vogt-Schilb
> 
> Research Fellow
> 
> vogt at centre-cired.fr
> 
> Tel: (+33) 1 43 94 73 96
> 
> Fax: (+33) 1 43 94 73 70
> 
> CIRED
> 
> 
> 45 bis, Av de la Belle Gabrielle
> 
> F-94736 Nogent-sur-Marne
> 
> http://www.centre-cired.fr/
> 
> 
> 
>  
> 
> 





More information about the users mailing list