Jump to content

Printing an int using c


Recommended Posts

Is there a way to print an integer value to the screen in Raptor using c?  I see the jsfPrintInt method in the documentation (and there's a Basic example), but this method doesn't appear to exist in c.  Does anyone have a working example or code snippet?



Link to comment
Share on other sites

1 hour ago, Clint Thompson said:

Try digging into the build folder of print example under the basic project folders. From there, you can open the C source conversion and have a look how it’s done. 

Ah ha, thanks!  I didn't know that the C source conversion existed under the build folder for Basic projects.  Neat.


For those just passing through, here's the solution:


js_r_textbuffer = ee_printf("%d",myInt);

  • Like 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...