[Scilab-users] Printf on console in a c file

Perrichon perrichon.pierre at wanadoo.fr
Wed Dec 21 10:37:18 CET 2016


Hello

I've finally found what I wanted in my C function, with Coserror instruction

Coserror("Lower limiter greater than the Upper");

Thanks for your response



Before printing, think about ENVIRONMENTAL responsabity

-----Message d'origine-----
De : users [mailto:users-bounces at lists.scilab.org] De la part de Tim Wescott
Envoyé : mardi 20 décembre 2016 19:48
À : Users mailing list for Scilab <users at lists.scilab.org>
Objet : Re: [Scilab-users] Printf on console in a c file

On Tue, 2016-12-20 at 15:02 +0100, Perrichon wrote:
> Hello,
>  
> I’d like to print in a C file (inside a palette) on the console, but 
> nothing appends.
> Have anybody an idea on how to proceed ?
>  
> I’ve also try something  like :
> fprintf(stderr,"\n Lower limiter greater then Upper one"); but I get 
> errors at compile time, includind stdio.h

Are you trying to use the C standard library printf, or the Scilab printf?

It's been a while since I've done combined C and Scilab code, but if I remember correctly you can call Scilab functions from C -- that's probably what you'll need to do.

-- 

Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.
Phone: 503.631.7815
Cell:  503.349.8432



_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users




More information about the users mailing list