Click here to Skip to main content
14,738,875 members
Home » Discussions » Linux Programming
   

Linux Programming

 
AnswerRe: Can "cast looses precision " error be optioned out ? Pin
k50543-Mar-20 6:52
mvek50543-Mar-20 6:52 
AnswerSOLVED Re: Can "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 9:00
MemberVaclav_3-Mar-20 9:00 
GeneralRe: SOLVED Re: Can "cast looses precision " error be optioned out ? Pin
k50543-Mar-20 11:36
mvek50543-Mar-20 11:36 
GeneralRe: SOLVED Re: Can "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 14:47
MemberVaclav_3-Mar-20 14:47 
QuestionBluetooth socket failures Pin
Vaclav_28-Feb-20 6:43
MemberVaclav_28-Feb-20 6:43 
AnswerRe: Bluetooth socket failures Pin
Richard MacCutchan28-Feb-20 7:32
mveRichard MacCutchan28-Feb-20 7:32 
GeneralRe: Bluetooth socket failures Pin
Vaclav_28-Feb-20 8:12
MemberVaclav_28-Feb-20 8:12 
GeneralRe: Bluetooth socket failures Pin
k505429-Feb-20 7:14
mvek505429-Feb-20 7:14 
Vaclav_ wrote:
I have quit checking the actual file descriptor because perror gives a more information when it fails.

This could be a problem: perror() prints the associated error string with the current errno, but a successful library call does not reset errno to zero. If you're going to rely on perror(), and by extension errno, you need to make sure you set errrno to zero before any library call that might set errno. Otherwise, you could be getting invalid error information. Every library function I can think of will return a value that will indicate that it failed (e.g. -1 for open(), or NULL for fopen(), etc). You really should be testing the return value for failure before checking perror()
GeneralRe: Bluetooth socket failures Pin
Vaclav_29-Feb-20 9:27
MemberVaclav_29-Feb-20 9:27 
GeneralRe: Bluetooth socket failures Pin
Richard MacCutchan29-Feb-20 22:19
mveRichard MacCutchan29-Feb-20 22:19 
GeneralRe: Bluetooth socket failures Pin
Vaclav_1-Mar-20 5:02
MemberVaclav_1-Mar-20 5:02 
GeneralRe: Bluetooth socket failures Pin
Vaclav_28-Feb-20 9:32
MemberVaclav_28-Feb-20 9:32 
QuestionRunning console apps on windows 7 Pin
CalinNegru(fearless_)23-Feb-20 21:07
MemberCalinNegru(fearless_)23-Feb-20 21:07 
AnswerRe: Running console apps on windows 7 Pin
Victor Nijegorodov23-Feb-20 21:45
MemberVictor Nijegorodov23-Feb-20 21:45 
GeneralRe: Running console apps on windows 7 Pin
CalinNegru(fearless_)23-Feb-20 22:22
MemberCalinNegru(fearless_)23-Feb-20 22:22 
AnswerRe: Running console apps on windows 7 Pin
Richard MacCutchan23-Feb-20 21:59
mveRichard MacCutchan23-Feb-20 21:59 
GeneralRe: Running console apps on windows 7 Pin
CalinNegru(fearless_)23-Feb-20 22:21
MemberCalinNegru(fearless_)23-Feb-20 22:21 
GeneralRe: Running console apps on windows 7 Pin
jsc4229-Feb-20 12:16
professionaljsc4229-Feb-20 12:16 
Questiongetting started with ASM, what compilers do you use? Pin
CalinNegru(fearless_)21-Feb-20 2:47
MemberCalinNegru(fearless_)21-Feb-20 2:47 
AnswerRe: getting started with ASM, what compilers do you use? Pin
Richard MacCutchan21-Feb-20 2:52
mveRichard MacCutchan21-Feb-20 2:52 
GeneralRe: getting started with ASM, what compilers do you use? Pin
CalinNegru(fearless_)21-Feb-20 3:40
MemberCalinNegru(fearless_)21-Feb-20 3:40 
GeneralRe: getting started with ASM, what compilers do you use? Pin
Richard MacCutchan21-Feb-20 4:54
mveRichard MacCutchan21-Feb-20 4:54 
GeneralRe: getting started with ASM, what compilers do you use? Pin
CalinNegru(fearless_)21-Feb-20 7:39
MemberCalinNegru(fearless_)21-Feb-20 7:39 
GeneralRe: getting started with ASM, what compilers do you use? Pin
Richard MacCutchan21-Feb-20 7:50
mveRichard MacCutchan21-Feb-20 7:50 
GeneralRe: getting started with ASM, what compilers do you use? Pin
CalinNegru(fearless_)21-Feb-20 8:04
MemberCalinNegru(fearless_)21-Feb-20 8:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.