[uClibc] question about unbuffed get_char()

mark yang armuclinux at yahoo.com
Mon Dec 1 23:15:42 UTC 2003


Hi, 

We are try to use setvbuf() to configure stdin to use unbuffered I/O as follows, but the result is still buffered I/O, meaning that get_char() won’t return until <CR> is hit. what I'm doing is following:

If (rc = setvbuf(stdin, NULL, _IONBF, 0))

printf("Error setvbuf\n");

Anyone can tell me what is wrong or is there another way to make get_char() return immediately?

Thanks!

Mark

 


 


---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20031201/d8713ba1/attachment.htm 


More information about the uClibc mailing list