#include #include #include #include const char *head = " |\\/\\\n / oo |\n\\\\_\\ T /" "\n \\---| \\\n / |\n | |\n | |\n\n\n\n"; const char *tail = "\n\n\n\n\n\n | |\n | A \\" "\n || ||\\\\\n || || \\\\\n ww ww \\\n"; int main(int argc, char **argv) { if (argc != 2) { fprintf(stderr, "Wrong argument count!\n"); return 1; } int fd = open(argv[1], O_RDWR | O_CREAT | O_EXCL, 0644); if (fd == -1) { perror("Creating the file failed"); return 1; } ftruncate(fd, 4.5036e15); write(fd, head, strlen(head)); lseek(fd, 0, SEEK_END); write(fd, tail, strlen(tail)); close(fd); return 0; }