static void write_constant(int fd, const char *str) { .... if (write_in_full(fd, str, strlen(str)) != strlen(str)) .... }