Re: return value of write

2024-10-06 Thread Otto Moerbeek
On Sun, Oct 06, 2024 at 02:48:56PM -0300, Gustavo Rios wrote: > Hi folks! > > I am programming in obsd using the c coding language. I have a doubt > related to parameters and return value of write. My doubt is related to the > fact that write has a parameter of the number of bytes to write in > n

Re: return value of write

2024-10-06 Thread Stephen Wiley
>From what I've seen typically people check if the value is -1 and call perror() if it is and then fail whatever they were doing. --Stephen On Sun, Oct 06, 2024 at 02:48:56PM -0300, Gustavo Rios wrote: > Hi folks! > > I am programming in obsd using the c coding language. I have a doubt > related