[prev in list] [next in list] [prev in thread] [next in thread] 

List:       plug-mail
Subject:    Re: [PLUG] Serial Communication Code.
From:       Shakthi Kannan <shakthimaan () gmail ! com>
Date:       2009-06-29 4:53:24
Message-ID: d16b1c80906282153u46fec5eer481dfe013bb7db9e () mail ! gmail ! com
[Download RAW message or body]

Hi,

--- On Thu, Jun 25, 2009 at 2:38 PM, Suraj Swami<suraj.g.swami@gmail.com> wrote:
| I want to send single charector on the serial port which my hardware will
| receive and execute.
\--

What hardware? Do you have the datasheet?

---
|    tcdrain(fd);
\--

You should always check return values of functions. You can check
return value of tcdrain() and see what it returns. Also refer:

http://linux.die.net/man/3/tcdrain
http://opengroup.org/onlinepubs/007908799/xsh/tcdrain.html

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

_______________________________________
Pune GNU/Linux Users Group Mailing List 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic