1 /* vi: set sw=4 ts=4: */
5 * Copyright (C) 2008 Bernhard Fischer
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
12 /* Open file and write string str to it, close file.
13 * Die on any open or write-error. */
14 void FAST_FUNC xopen_xwrite_close(const char* file, const char* str)
16 int fd = xopen(file, O_WRONLY);
18 xwrite(fd, str, strlen(str));