[LCP] dbt on scanf

ABHI abhilash_mj at cms.com
Wed Apr 30 06:02:45 UTC 2008


thank u for u r help.i will try using the mentioned
----- Original Message ----- 
From: "Joaquim Duran Comas" <jdurancomas at gmail.com>
To: "linuxcprogramming" <linuxcprogramming at lists.linux.org.au>
Sent: Wednesday, April 30, 2008 3:10 AM
Subject: Re: [LCP] dbt on scanf


>> hi
>>
>> I am trying to creating a debugging program for arm-linux
>> for that i got a debugging menu ;
>>
>>
>> I have got 2 options
>>
>> 1)wait for 5 sec
>> 2)Enter an option from menu
>>
>>
>> i tried to implement this with a timer but it worked on pc(i dnt know
>> how scanf exited without getting char ) but not worked in arm platform.
>> Any solution
> 
> You should use 'select' or 'pselect'. They allow to monitorize a set
> of file descriptors for input, output or exceptions. Another
> parameters to these commands is a timeout paramemter, to indiate the
> anount of time that the functions should be monitorizing the sets of
> FD.
> 
> Thanks and Best Regards,
> Joaquim Duran
> 
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List
>



More information about the linuxCprogramming mailing list