On results, the quantity of bytes composed is returned. On mistake, -1 is returned, and errno is about to point the reason for the mistake. Be aware that A prosperous write() might transfer fewer than count bytes. This sort of partial writes can happen for a variety of motives; such https://awakening-mind.org/resources/a-course-in-miracles/