int a;
rt_com_write(0, &i, sizeof(i));

Or you can use sprintf to convert an int to a string.

Michael.

Lounell B. Gueta 1996-49721 ([EMAIL PROTECTED]) wrote:
> 
>       Hi to everyone.
>       I'm a beginner in RTLinux and also in programming C language under 
> Linux environment.
>       I'm using the rt_com.o module to access my serial com.The data 
> sent and received through rt_com_write and rt_com_read functions are in 
> the form of characters. Can anyone help me to send a data stored in 
> an integer format? I'm familiar of itoa function but it prompts me an error.
>       More power! 
> 
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to