AnsweredAssumed Answered

AEL: Can sprintf a list to a string and fputs it.

Question asked by yinyz2008@sina.com on Feb 1, 2015
Latest reply on Feb 3, 2015 by yinyz2008@sina.com
AEL: Can sprintf a list to a string and fputs it.
When debugging a segment of AEL codes, I need to sprintf a list to a string. I need to check out the list and fputs the list to stderr debug window. I have tried the following methods, but none of them work.
decl b=list(1,3,5,9,3+4i);
decl s1=sprintf(“%s”,car(b));     //     It does work whether it is %s、%f or %i.
decl s1=sprintf(“%s”,fmt(car(b))); // does not work.
I need to sprintf list b to a string s1 and fputs it as following:
fputs(stderr,s1);          
HELP!
B.T.W: I need more AEL examples but I can only find 3 of all the ADS examples. Where can I get
more AEL examples?  

Outcomes